bruno/renderer/pages/_app.js

33 lines
741 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';
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-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
);
}
export default MyApp