diff --git a/src/components/App.tsx b/src/components/App.tsx
index d325a23..b526f50 100644
--- a/src/components/App.tsx
+++ b/src/components/App.tsx
@@ -36,29 +36,44 @@ const App: React.FC = () => {
- {true || ethStatus?.syncState === "syncing" ||
+ {true ||
+ ethStatus?.syncState === "syncing" ||
handshakeStatus?.syncState === "syncing" ? (
{ethStatus?.syncState === "syncing" ? (
-
- {ethStatus.sync.toFixed(1)}% Syncing Ethereum Network
+
+
+ {ethStatus.sync.toFixed(1)}%
+ {" "}
+ Syncing Ethereum Network
) : ethStatus?.syncState === "done" ? (
-
- {" "} Ethereum Synced
+ {" "}
+ Ethereum Synced
) : null}
{handshakeStatus?.syncState === "syncing" ? (
-
- {handshakeStatus.sync.toFixed(1)}% Syncing Handshake Network
+
+
+ {handshakeStatus.sync.toFixed(1)}%
+ {" "}
+ Syncing Handshake Network
) : handshakeStatus?.syncState === "done" ? (
-
- {" "} Handshake Synced
+ {" "}
+ Handshake Synced
) : null}
@@ -67,11 +82,21 @@ const App: React.FC = () => {
);
};
-const CircleProgressBar = ({ radius, strokeWidth, textSize, percentage } : {radius: number, strokeWidth: number, textSize?: number, percentage: number}) => {
+const CircleProgressBar = ({
+ radius,
+ strokeWidth,
+ textSize,
+ percentage,
+}: {
+ radius: number;
+ strokeWidth: number;
+ textSize?: number;
+ percentage: number;
+}) => {
const circumference = 2 * Math.PI * radius;
const offset = circumference - (percentage / 100) * circumference;
- const color = Math.ceil(percentage) >= 100 ? "green-500" : "orange-400"
-
+ const color = Math.ceil(percentage) >= 100 ? "green-500" : "orange-400";
+
return (
);
};