Skip to content
This repository was archived by the owner on Aug 27, 2025. It is now read-only.

Commit d4ad58b

Browse files
committed
fix: types errors
1 parent 0e67913 commit d4ad58b

2 files changed

Lines changed: 19 additions & 21 deletions

File tree

src/components/ConnectButton.tsx

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,9 @@ export const ConnectButton: React.FC<{
136136
),
137137
onClick: () => {
138138
if (account?.characterId) {
139-
opSignSettingsModal.show(account?.characterId)
139+
opSignSettingsModal.show({
140+
characterId: account?.characterId,
141+
})
140142
}
141143
},
142144
},
@@ -286,7 +288,6 @@ export const ConnectButton: React.FC<{
286288
return (
287289
<UniLink
288290
key={i}
289-
href={link.url}
290291
onClick={link.onClick}
291292
className={`${
292293
size === "base"

src/pages/_app.tsx

Lines changed: 16 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,10 @@ import { PersistQueryClientProvider } from "@tanstack/react-query-persist-client
77
import { useState } from "react"
88
import { createClient, WagmiConfig } from "wagmi"
99
import { InitContractProvider } from "@crossbell/contract"
10-
import { ConnectKitProvider, contractConfig } from "@crossbell/connect-kit"
10+
import {
11+
ConnectKitProvider,
12+
getDefaultClientConfig,
13+
} from "@crossbell/connect-kit"
1114
import { Network } from "crossbell.js"
1215

1316
import { Layout } from "~/components/Layout"
@@ -19,11 +22,7 @@ import { NotificationModal } from "@crossbell/notification"
1922

2023
Network.setIpfsGateway(IPFS_GATEWAY)
2124

22-
const wagmiClient = createClient({
23-
autoConnect: true,
24-
connectors,
25-
provider,
26-
})
25+
const wagmiClient = createClient(getDefaultClientConfig({ appName: "xChar" }))
2726

2827
const persister = createIDBPersister()
2928

@@ -36,19 +35,17 @@ export default function App({ Component, pageProps }: AppProps) {
3635
client={queryClient}
3736
persistOptions={{ persister }}
3837
>
39-
<InitContractProvider {...contractConfig}>
40-
<ConnectKitProvider ipfsLinkToHttpLink={toGateway}>
41-
<Hydrate state={pageProps.dehydratedState}>
42-
<NextNProgress
43-
options={{ easing: "linear", speed: 500, trickleSpeed: 100 }}
44-
/>
45-
<Layout>
46-
<Component {...pageProps} />
47-
</Layout>
48-
<NotificationModal />
49-
</Hydrate>
50-
</ConnectKitProvider>
51-
</InitContractProvider>
38+
<ConnectKitProvider ipfsLinkToHttpLink={toGateway}>
39+
<Hydrate state={pageProps.dehydratedState}>
40+
<NextNProgress
41+
options={{ easing: "linear", speed: 500, trickleSpeed: 100 }}
42+
/>
43+
<Layout>
44+
<Component {...pageProps} />
45+
</Layout>
46+
<NotificationModal />
47+
</Hydrate>
48+
</ConnectKitProvider>
5249
</PersistQueryClientProvider>
5350
</WagmiConfig>
5451
)

0 commit comments

Comments
 (0)