fix: _app type issues

This commit is contained in:
suemor
2023-04-12 00:20:42 +08:00
parent 6b723656e7
commit 264fbc43fa
2 changed files with 20 additions and 2 deletions
+3 -2
View File
@@ -19,6 +19,7 @@ import { APP_NAME, IPFS_GATEWAY } from "~/lib/env"
import { toGateway } from "~/lib/ipfs-parser"
import { createIDBPersister } from "~/lib/persister.client"
import { urlComposer } from "~/lib/url-composer"
import { AppPropsWithLayout } from "types/next"
Network.setIpfsGateway(IPFS_GATEWAY)
@@ -34,8 +35,8 @@ const queryClient = new QueryClient({
const persister = createIDBPersister()
function MyApp({ Component, pageProps }: any) {
const getLayout = Component.getLayout ?? ((page: any) => page)
function MyApp({ Component, pageProps }: AppPropsWithLayout) {
const getLayout = Component.getLayout ?? ((page) => page)
return (
<WagmiConfig client={wagmiClient}>