diff --git a/src/app/withStarknetReactNext/page.tsx b/src/app/withStarknetReactNext/page.tsx index 707b13d..4001b32 100644 --- a/src/app/withStarknetReactNext/page.tsx +++ b/src/app/withStarknetReactNext/page.tsx @@ -8,7 +8,7 @@ import { DisconnectButton } from "@/components/DisconnectButton" import { Section } from "@/components/Section" import { ConnectStarknetReactNext } from "@/components/connect/ConnectStarknetReactNext" import { CHAIN_ID } from "@/constants" -import { availableConnectors } from "@/helpers/connectorsNext" +import { connectors as starknetkitConnectors } from "@/helpers/connectorsNext" import { useWaitForTx } from "@/hooks/useWaitForTx" import { Flex } from "@chakra-ui/react" import { useEffect, useState } from "react" @@ -96,7 +96,7 @@ export default function StarknetReactNext() { diff --git a/src/components/connect/ConnectStarknetReactNext.tsx b/src/components/connect/ConnectStarknetReactNext.tsx index c396508..de76c06 100644 --- a/src/components/connect/ConnectStarknetReactNext.tsx +++ b/src/components/connect/ConnectStarknetReactNext.tsx @@ -1,4 +1,4 @@ -import { availableConnectors } from "@/helpers/connectorsNext" +import { connectors as starknetkitConnectors } from "@/helpers/connectorsNext" import { starknetReactVersionAtom, starknetkitVersionAtom, @@ -19,7 +19,7 @@ const ConnectStarknetReactNext = () => { const setStarknetReactVersion = useSetAtom(starknetReactVersionAtom) const { starknetkitConnectModal } = useStarknetkitConnectModal({ - connectors: availableConnectors as StarknetkitConnector[], + connectors: starknetkitConnectors as StarknetkitConnector[], }) // https://nextjs.org/docs/messages/react-hydration-error#solution-1-using-useeffect-to-run-on-the-client-only