icns-frontend/pages/_app.tsx

24 lines
693 B
TypeScript
Raw Normal View History

2022-11-30 10:36:59 +00:00
import type { AppProps } from "next/app";
import React from "react";
import { ThemeProvider } from "styled-components";
2022-12-14 15:39:51 +00:00
import ErrorBoundary from "../components/error-boundary";
import { PageBackground } from "../styles/background";
import { GlobalStyle } from "../styles/global";
import { defaultTheme } from "../styles/theme";
2022-11-30 08:11:45 +00:00
export default function App({ Component, pageProps }: AppProps) {
return (
<ThemeProvider theme={defaultTheme}>
<React.Fragment>
<GlobalStyle />
<ErrorBoundary>
<PageBackground>
<Component {...pageProps} />
</PageBackground>
</ErrorBoundary>
</React.Fragment>
</ThemeProvider>
);
2022-11-30 08:11:45 +00:00
}