CoastalCommitsPastes/client/pages/_app.tsx

60 lines
1.5 KiB
TypeScript
Raw Permalink Normal View History

2022-04-09 20:48:19 -04:00
import "@styles/globals.css"
import type { AppProps as NextAppProps } from "next/app"
2022-03-06 19:46:59 -05:00
2022-04-09 20:48:19 -04:00
import "react-loading-skeleton/dist/skeleton.css"
import Head from "next/head"
import { ThemeProvider } from "next-themes"
import App from "@components/app"
2022-04-12 22:19:06 -04:00
import React from "react"
2022-03-15 22:49:41 -04:00
2022-03-06 19:46:59 -05:00
type AppProps<P = any> = {
2022-04-09 20:48:19 -04:00
pageProps: P
} & Omit<NextAppProps<P>, "pageProps">
2022-03-06 19:46:59 -05:00
function MyApp({ Component, pageProps }: AppProps) {
2022-04-09 20:48:19 -04:00
return (
<div>
<Head>
<meta charSet="utf-8" />
<meta
name="viewport"
content="width=device-width, initial-scale=1, shrink-to-fit=no"
/>
<link
rel="apple-touch-icon"
sizes="180x180"
href="/assets/apple-touch-icon.png"
/>
<link
rel="icon"
type="image/png"
sizes="32x32"
href="/assets/favicon-32x32.png"
/>
<link
rel="icon"
type="image/png"
sizes="16x16"
href="/assets/favicon-16x16.png"
/>
<link rel="manifest" href="/site.webmanifest" />
<link
rel="mask-icon"
href="/assets/safari-pinned-tab.svg"
color="#5bbad5"
/>
<meta name="apple-mobile-web-app-title" content="Drift" />
<meta name="application-name" content="Drift" />
<meta name="msapplication-TileColor" content="#da532c" />
<meta name="theme-color" content="#ffffff" />
<title>Drift</title>
</Head>
<ThemeProvider defaultTheme="system" disableTransitionOnChange>
<App Component={Component} pageProps={pageProps} />
</ThemeProvider>
2022-04-09 20:48:19 -04:00
</div>
)
2022-03-06 19:46:59 -05:00
}
export default MyApp