2022-01-24 19:27:30 +01:00
|
|
|
import { HotkeysProvider } from 'providers/Hotkeys';
|
2022-03-07 15:32:39 +01:00
|
|
|
import { AuthProvider } from 'providers/Auth';
|
2022-03-17 21:26:25 +01:00
|
|
|
import { AppProvider } from 'providers/App';
|
2022-03-17 05:11:27 +01:00
|
|
|
import ReduxStore from 'providers/ReduxStore';
|
|
|
|
import { Provider } from 'react-redux';
|
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-03-07 15:32:39 +01:00
|
|
|
<AuthProvider>
|
2022-03-17 05:11:27 +01:00
|
|
|
<Provider store={ReduxStore}>
|
2022-03-17 21:26:25 +01:00
|
|
|
<AppProvider>
|
2022-03-18 16:50:11 +01:00
|
|
|
<HotkeysProvider>
|
|
|
|
<Component {...pageProps} />
|
|
|
|
</HotkeysProvider>
|
2022-03-17 21:26:25 +01:00
|
|
|
</AppProvider>
|
2022-03-17 05:11:27 +01:00
|
|
|
</Provider>
|
2022-03-07 15:32:39 +01:00
|
|
|
</AuthProvider>
|
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
|