mirror of
https://github.com/IT4Change/ohmyform-ui.git
synced 2025-12-13 09:45:50 +00:00
28 lines
812 B
TypeScript
28 lines
812 B
TypeScript
import { ApolloProvider } from '@apollo/client'
|
|
import 'antd/dist/antd.css'
|
|
import 'assets/global.scss'
|
|
import 'assets/variables.scss'
|
|
import 'i18n'
|
|
import App, { AppInitialProps } from 'next/app'
|
|
import { AppType } from 'next/dist/next-server/lib/utils'
|
|
import Head from 'next/head'
|
|
import React from 'react'
|
|
import { wrapper } from 'store'
|
|
import getClient from '../graphql/client'
|
|
|
|
const MyApp: AppType = ({ Component, pageProps }) => {
|
|
return (
|
|
<ApolloProvider client={getClient()}>
|
|
<Head>
|
|
<title>OhMyForm</title>
|
|
<meta name="theme-color" content={'#4182e4'} />
|
|
</Head>
|
|
<Component {...pageProps} />
|
|
</ApolloProvider>
|
|
)
|
|
}
|
|
|
|
MyApp.getInitialProps = (context): Promise<AppInitialProps> => App.getInitialProps(context as any)
|
|
|
|
export default wrapper.withRedux(MyApp)
|