mirror of
https://github.com/IT4Change/ohmyform-ui.git
synced 2026-01-20 19:31:17 +00:00
- add default page background - add environment list in [doc](doc/environment.md) - combined notificationts to become more versatile - use exported hooks for graphql - links at the bottom for new users - fixes for hide contrib setting - upgrad all packages
37 lines
910 B
TypeScript
37 lines
910 B
TypeScript
import { ApolloProvider } from '@apollo/client'
|
|
import 'antd/dist/antd.css'
|
|
import 'assets/global.scss'
|
|
import 'assets/variables.scss'
|
|
import 'i18n'
|
|
import { AppInitialProps } from 'next/app'
|
|
import getConfig from 'next/config'
|
|
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 { publicRuntimeConfig } = getConfig() as {
|
|
publicRuntimeConfig: {
|
|
endpoint: string
|
|
}
|
|
}
|
|
|
|
const App: AppType = ({ Component, pageProps }) => {
|
|
return (
|
|
<ApolloProvider client={getClient()}>
|
|
<Head>
|
|
<title>OhMyForm</title>
|
|
<meta name="theme-color" content={'#4182e4'} />
|
|
</Head>
|
|
<Component {...pageProps} />
|
|
</ApolloProvider>
|
|
)
|
|
}
|
|
|
|
App.getInitialProps = (): AppInitialProps => ({
|
|
pageProps: {},
|
|
})
|
|
|
|
export default wrapper.withRedux(App)
|