This repository has been archived on 2023-08-20. You can view files and clone it, but cannot push or open issues or pull requests.
2021-03-17 04:26:32 +00:00
|
|
|
import '@kichiyaki/roboto';
|
2021-04-15 04:16:28 +00:00
|
|
|
import { useEffect } from 'react';
|
2021-03-17 04:04:50 +00:00
|
|
|
import { AppProps } from 'next/app';
|
2021-03-17 04:26:32 +00:00
|
|
|
import ThemeProvider from 'libs/material-ui/ThemeProvider';
|
2021-03-17 04:04:50 +00:00
|
|
|
|
2021-11-07 07:03:21 +00:00
|
|
|
const App = ({ Component, pageProps }: AppProps) => {
|
2021-03-17 04:26:32 +00:00
|
|
|
useEffect(() => {
|
|
|
|
const jssStyles = document.querySelector('#jss-server-side');
|
|
|
|
if (jssStyles && jssStyles.parentElement) {
|
|
|
|
jssStyles.parentElement.removeChild(jssStyles);
|
|
|
|
}
|
|
|
|
}, []);
|
|
|
|
|
|
|
|
return (
|
|
|
|
<ThemeProvider>
|
2022-09-25 10:55:36 +00:00
|
|
|
<Component {...pageProps} />
|
2021-03-17 04:26:32 +00:00
|
|
|
</ThemeProvider>
|
|
|
|
);
|
2021-11-07 07:03:21 +00:00
|
|
|
};
|
2021-03-17 04:04:50 +00:00
|
|
|
|
2021-11-07 07:03:21 +00:00
|
|
|
export default App;
|