bruno/renderer/pages/_app.js

40 lines
988 B
JavaScript
Raw Normal View History

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';
import { AppProvider } from 'providers/App';
import ReduxStore from 'providers/ReduxStore';
import { Provider } from 'react-redux';
2021-12-03 20:37:38 +01:00
import '../styles/globals.css'
2021-12-03 19:46:54 +01:00
import 'tailwindcss/dist/tailwind.min.css';
import 'react-tabs/style/react-tabs.css';
import 'codemirror/lib/codemirror.css';
import 'graphiql/graphiql.min.css';
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>
)
}
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>
<Provider store={ReduxStore}>
<AppProvider>
2022-03-18 16:50:11 +01:00
<HotkeysProvider>
<Component {...pageProps} />
</HotkeysProvider>
</AppProvider>
</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
);
}
export default MyApp