Skip to content

Commit

Permalink
fix lint errors
Browse files Browse the repository at this point in the history
  • Loading branch information
xzilja committed Feb 12, 2024
1 parent 8a9d7e1 commit d97760a
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 4 deletions.
5 changes: 3 additions & 2 deletions examples/next-wagmi/src/app/layout.tsx
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
import type { Metadata } from 'next'
import { Inter } from 'next/font/google'
import { Inter as interFonts } from 'next/font/google'
import './globals.css'
import { cookieToInitialState } from 'wagmi'
import { headers } from 'next/headers'
import { config } from '@/config'
import ContextProvider from '@/context'

const inter = Inter({ subsets: ['latin'] })
const inter = interFonts({ subsets: ['latin'] })

export const metadata: Metadata = {
title: 'Create Next App',
Expand All @@ -19,6 +19,7 @@ export default function RootLayout({
children: React.ReactNode
}>) {
const initialState = cookieToInitialState(config, headers().get('cookie'))

return (
<html lang="en">
<body className={inter.className}>
Expand Down
4 changes: 3 additions & 1 deletion examples/next-wagmi/src/config/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,9 @@ import { mainnet, sepolia } from 'wagmi/chains'

export const projectId = process.env.NEXT_PUBLIC_PROJECT_ID

if (!projectId) throw new Error('Project ID is not defined')
if (!projectId) {
throw new Error('Project ID is not defined')
}

export const config = defaultWagmiConfig({
projectId,
Expand Down
4 changes: 3 additions & 1 deletion examples/next-wagmi/src/context/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,9 @@ import { State, WagmiProvider } from 'wagmi'

const queryClient = new QueryClient()

if (!projectId) throw new Error('Project ID is not defined')
if (!projectId) {
throw new Error('Project ID is not defined')
}

createWeb3Modal({
wagmiConfig: config,
Expand Down

0 comments on commit d97760a

Please sign in to comment.