From f16b89bb81e08beca8ae5c57b3869e88182024d2 Mon Sep 17 00:00:00 2001 From: bluecco Date: Thu, 4 Jul 2024 17:47:11 +0200 Subject: [PATCH] chore: clean code --- src/app/withStarknetReactLatest/page.tsx | 3 +-- src/app/withStarknetReactNext/page.tsx | 7 ++----- src/components/connect/ConnectStarknetReactNext.tsx | 1 - 3 files changed, 3 insertions(+), 8 deletions(-) diff --git a/src/app/withStarknetReactLatest/page.tsx b/src/app/withStarknetReactLatest/page.tsx index 4079564..b023961 100644 --- a/src/app/withStarknetReactLatest/page.tsx +++ b/src/app/withStarknetReactLatest/page.tsx @@ -23,8 +23,7 @@ import { constants } from "starknet" import { disconnect } from "starknetkit-next" const StarknetReactDappContent = () => { - const { account, status, isConnected } = useAccount() - const { connector } = useConnect() + const { account, isConnected } = useAccount() const [chainId, setChainId] = useState( undefined, ) diff --git a/src/app/withStarknetReactNext/page.tsx b/src/app/withStarknetReactNext/page.tsx index 18165fe..fa5ed7a 100644 --- a/src/app/withStarknetReactNext/page.tsx +++ b/src/app/withStarknetReactNext/page.tsx @@ -17,18 +17,15 @@ import { StarknetConfig, publicProvider, useAccount, - useWalletRequest, } from "starknet-react-core-next" -import { Connector, StarknetkitConnector, disconnect } from "starknetkit-next" +import { disconnect } from "starknetkit-next" const StarknetReactDappContent = () => { - const { account, status, isConnected } = useAccount() + const { account, isConnected } = useAccount() const [chainId, setChainId] = useState( undefined, ) - console.log({ account, isConnected }) - useWaitForTx() useEffect(() => { diff --git a/src/components/connect/ConnectStarknetReactNext.tsx b/src/components/connect/ConnectStarknetReactNext.tsx index 78a57d6..51eefed 100644 --- a/src/components/connect/ConnectStarknetReactNext.tsx +++ b/src/components/connect/ConnectStarknetReactNext.tsx @@ -41,7 +41,6 @@ const ConnectStarknetReactNext = () => { return ( - {status} {connectors.filter(inAppBrowserFilter).map((connector) => { if (!connector.available()) {