2021-12-03 20:37:38 +01:00
|
|
|
import { StoreProvider } from 'providers/Store';
|
2022-01-24 19:27:30 +01:00
|
|
|
import { HotkeysProvider } from 'providers/Hotkeys';
|
2021-12-03 20:37:38 +01:00
|
|
|
|
2021-12-03 19:04:48 +01:00
|
|
|
import '../styles/globals.css'
|
2021-12-03 19:46:54 +01:00
|
|
|
import 'tailwindcss/dist/tailwind.min.css';
|
2021-12-04 12:30:03 +01:00
|
|
|
import 'react-tabs/style/react-tabs.css';
|
|
|
|
import 'codemirror/lib/codemirror.css';
|
2021-12-06 14:35:42 +01:00
|
|
|
import 'graphiql/graphiql.min.css';
|
2021-12-03 19:04:48 +01:00
|
|
|
|
2022-01-06 16:50:10 +01:00
|
|
|
import '../styles/app.scss';
|
|
|
|
|
2021-12-30 15:12:04 +01:00
|
|
|
function SafeHydrate({ children }) {
|
|
|
|
return (
|
|
|
|
<div suppressHydrationWarning>
|
|
|
|
{typeof window === 'undefined' ? null : children}
|
|
|
|
</div>
|
|
|
|
)
|
|
|
|
}
|
|
|
|
|
2021-12-03 19:04:48 +01:00
|
|
|
function MyApp({ Component, pageProps }) {
|
2021-12-03 20:37:38 +01:00
|
|
|
return (
|
2021-12-30 15:12:04 +01:00
|
|
|
<SafeHydrate>
|
2022-01-24 19:27:30 +01:00
|
|
|
<HotkeysProvider>
|
|
|
|
<StoreProvider>
|
|
|
|
<Component {...pageProps} />
|
|
|
|
</StoreProvider>
|
|
|
|
</HotkeysProvider>
|
2021-12-30 15:12:04 +01:00
|
|
|
</SafeHydrate>
|
2021-12-03 20:37:38 +01:00
|
|
|
);
|
2021-12-03 19:04:48 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
export default MyApp
|