@@ -5,6 +5,7 @@ import { Tooltip } from "react-tooltip";
5
5
6
6
import { useGlobalParams } from "@/app/context/api/GlobalParamsProvider";
7
7
import { useBtcHeight } from "@/app/context/mempool/BtcHeightProvider";
8
+ import { useHealthCheck } from "@/app/hooks/useHealthCheck";
8
9
import { getNetworkConfig } from "@/config/network.config";
9
10
import { satoshiToBtc } from "@/utils/btcConversions";
10
11
import {
@@ -36,6 +37,7 @@ export const Summary: React.FC<SummaryProps> = ({
36
37
37
38
const btcHeight = useBtcHeight();
38
39
const globalParams = useGlobalParams();
40
+ const { isApiNormal, isGeoBlocked } = useHealthCheck();
39
41
40
42
useMemo(() => {
41
43
if (!btcHeight || !globalParams.data) {
@@ -76,23 +78,30 @@ export const Summary: React.FC<SummaryProps> = ({
76
78
</p>
77
79
</div>
78
80
</div>
79
- <div className="divider xl:divider-horizontal xl:mx-4 my-0" />
80
- <div className="flex flex-1 flex-col gap-2 text-sm xl:items-center">
81
- <div className="flex items-center gap-1">
82
- <p className="dark:text-neutral-content">Total points</p>
83
- <span
84
- className="cursor-pointer text-xs"
85
- data-tooltip-id={"tooltip-total-points"}
86
- data-tooltip-content={`The points measure your staking activities based on your BTC public key. Please check FAQ for further info.`}
87
- >
88
- <AiOutlineInfoCircle />
89
- </span>
90
- <Tooltip id={"tooltip-total-points"} className="tooltip-wrap" />
91
- </div>
92
- <div className="flex items-center gap-1">
93
- <StakerPoints publicKeyNoCoord={publicKeyNoCoord} />
94
- </div>
95
- </div>
81
+ {isApiNormal && !isGeoBlocked && (
82
+ <>
83
+ <div className="divider xl:divider-horizontal xl:mx-4 my-0" />
84
+ <div className="flex flex-1 flex-col gap-2 text-sm xl:items-center">
85
+ <div className="flex items-center gap-1">
86
+ <p className="dark:text-neutral-content">Total points</p>
87
+ <span
88
+ className="cursor-pointer text-xs"
89
+ data-tooltip-id={"tooltip-total-points"}
90
+ data-tooltip-content={`The points measure your staking activities based on your BTC public key. Please check FAQ for further info.`}
91
+ >
92
+ <AiOutlineInfoCircle />
93
+ </span>
94
+ <Tooltip
95
+ id={"tooltip-total-points"}
96
+ className="tooltip-wrap"
97
+ />
98
+ </div>
99
+ <div className="flex items-center gap-1">
100
+ <StakerPoints publicKeyNoCoord={publicKeyNoCoord} />
101
+ </div>
102
+ </div>
103
+ </>
104
+ )}
96
105
<div className="divider xl:divider-horizontal xl:mx-4 my-0" />
97
106
<div className="flex flex-1 flex-col gap-1 text-sm xl:items-center">
98
107
<div className="flex items-center gap-1">
0 commit comments