bruno/renderer/pages/_app.js

36 lines
841 B
JavaScript
Raw Normal View History

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';
2022-03-07 15:32:39 +01:00
import { AuthProvider } from 'providers/Auth';
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>
<StoreProvider>
<HotkeysProvider>
2022-03-07 15:32:39 +01:00
<Component {...pageProps} />
</HotkeysProvider>
</StoreProvider>
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