Skip to content

Commit

Permalink
fix: build
Browse files Browse the repository at this point in the history
  • Loading branch information
bluecco committed Dec 3, 2024
1 parent 5d29141 commit 80095f9
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/app/withStarknetReactNext/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down Expand Up @@ -96,7 +96,7 @@ export default function StarknetReactNext() {
<StarknetConfig
chains={chains}
provider={providers}
connectors={availableConnectors as any}
connectors={starknetkitConnectors as any}
>
<StarknetReactDappContent />
</StarknetConfig>
Expand Down
4 changes: 2 additions & 2 deletions src/components/connect/ConnectStarknetReactNext.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { availableConnectors } from "@/helpers/connectorsNext"
import { connectors as starknetkitConnectors } from "@/helpers/connectorsNext"
import {
starknetReactVersionAtom,
starknetkitVersionAtom,
Expand All @@ -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
Expand Down

0 comments on commit 80095f9

Please sign in to comment.