-
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path_app.tsx
39 lines (37 loc) · 1.19 KB
/
_app.tsx
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
import { UserSettingsProvider } from "@/koala/settings-provider";
import { trpc } from "@/koala/trpc-config";
import { MantineProvider } from "@mantine/core";
import "@mantine/core/styles.css";
import { Notifications } from "@mantine/notifications";
import { SessionProvider } from "next-auth/react";
import { AppProps } from "next/app";
import Head from "next/head";
import Navbar from "./_nav";
function App(props: AppProps) {
if (props.router.pathname === "/auth/email") {
return <props.Component {...props.pageProps} />;
}
return (
<>
<Head>
<title>Koala Cards</title>
<meta
name="viewport"
content="minimum-scale=1, initial-scale=1, width=device-width"
/>
</Head>
<SessionProvider session={props.pageProps.session}>
<MantineProvider defaultColorScheme="auto">
<UserSettingsProvider>
<Notifications />
<Navbar />
<div style={{ display: "flex", flexDirection: "row" }}>
<props.Component {...props.pageProps} />
</div>
</UserSettingsProvider>
</MantineProvider>
</SessionProvider>
</>
);
}
export default trpc.withTRPC(App);