From 5e96d94b8559c2ea504e05118bb0a5fe91ec6cc7 Mon Sep 17 00:00:00 2001 From: Uncle Fatso Date: Mon, 1 Dec 2025 17:57:06 +0300 Subject: [PATCH] make tsc happy Signed-off-by: Uncle Fatso --- package.json | 2 +- src/components/Sidebar.tsx | 2 +- src/hooks/useCalldata.tsx | 4 ++-- src/hooks/useCurrentValidators.tsx | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/package.json b/package.json index 4a3af24..ddc43fd 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "ghost-lite", - "version": "0.2.0", + "version": "0.2.1", "description": "Web application for Ghost and Casper chain.", "author": "Uncle f4ts0 ", "maintainers": [ diff --git a/src/components/Sidebar.tsx b/src/components/Sidebar.tsx index 85b4c67..86491a6 100644 --- a/src/components/Sidebar.tsx +++ b/src/components/Sidebar.tsx @@ -1,4 +1,4 @@ -import { HeartPulse, SendToBack, Book, Users, Handshake } from "lucide-react" +import { HeartPulse, SendToBack, Book, Users } from "lucide-react" import { FaGithub } from "react-icons/fa" import { Link, useLocation } from "react-router-dom" import { useEffect } from "react" diff --git a/src/hooks/useCalldata.tsx b/src/hooks/useCalldata.tsx index 9ad1163..fff2bf2 100644 --- a/src/hooks/useCalldata.tsx +++ b/src/hooks/useCalldata.tsx @@ -1,8 +1,8 @@ import useSWR from "swr" import { getDynamicBuilder, getLookupFn } from "@polkadot-api/metadata-builders" -import { mergeUint8, toHex, fromHex } from "@polkadot-api/utils" -import { type SS58String, Binary, Enum } from "@polkadot-api/substrate-bindings" +import { mergeUint8, toHex } from "@polkadot-api/utils" +import { type SS58String, Enum } from "@polkadot-api/substrate-bindings" import { useUnstableProvider } from "./useUnstableProvider" import { useMetadata } from "./useMetadata" diff --git a/src/hooks/useCurrentValidators.tsx b/src/hooks/useCurrentValidators.tsx index 72c764a..0116935 100644 --- a/src/hooks/useCurrentValidators.tsx +++ b/src/hooks/useCurrentValidators.tsx @@ -14,7 +14,7 @@ export type ValidatorDetails = { export const useCurrentValidators = ({ address }: { address: string | undefined }) => { const { chainHead$, chainId } = useUnstableProvider() const metadata = useMetadata() - const { data: currentValidators, error } = useSWRSubscription( + const { data: currentValidators } = useSWRSubscription( chainHead$ && address && chainId && metadata ? ["validators", chainHead$, address, chainId, metadata] : null,