You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
34 lines
964 B
34 lines
964 B
import '../styles/globals.css'
|
|
import type { AppProps } from 'next/app'
|
|
import { Provider } from 'react-redux'
|
|
import { store } from '../store/store'
|
|
import { ChakraProvider } from '@chakra-ui/react'
|
|
import Navbar from '../components/Navbar'
|
|
import Meta from '../components/meta/Meta'
|
|
import { GoogleOAuthProvider } from '@react-oauth/google'
|
|
import ErrorBoundary from '../components/ErrorBoundary'
|
|
function MyApp({ Component, pageProps }: AppProps) {
|
|
return (
|
|
<ErrorBoundary>
|
|
<Provider store={store}>
|
|
<GoogleOAuthProvider
|
|
clientId={process.env.NEXT_PUBLIC_GOOGLE_CLIENT_ID}
|
|
>
|
|
<ChakraProvider>
|
|
<Meta />
|
|
<Navbar />
|
|
<Wrapper>
|
|
<Component {...pageProps} />
|
|
</Wrapper>
|
|
</ChakraProvider>
|
|
</GoogleOAuthProvider>
|
|
</Provider>
|
|
</ErrorBoundary>
|
|
)
|
|
}
|
|
|
|
const Wrapper = ({ children }) => {
|
|
return <>{children}</>
|
|
}
|
|
|
|
export default MyApp
|