feat: add application shell

This commit is contained in:
Yangshun Tay
2022-09-29 19:47:31 +08:00
parent 523d91f920
commit dee60943d0
17 changed files with 465 additions and 98 deletions

View File

@@ -1,11 +1,14 @@
import type { AppType } from 'next/app';
import type { Session } from 'next-auth';
import { SessionProvider } from 'next-auth/react';
import React from 'react';
import superjson from 'superjson';
import { httpBatchLink } from '@trpc/client/links/httpBatchLink';
import { loggerLink } from '@trpc/client/links/loggerLink';
import { withTRPC } from '@trpc/next';
import AppShell from '~/components/global/AppShell';
import type { AppRouter } from '~/server/router';
import '~/styles/globals.css';
@@ -16,7 +19,9 @@ const MyApp: AppType<{ session: Session | null }> = ({
}) => {
return (
<SessionProvider session={session}>
<Component {...pageProps} />
<AppShell>
<Component {...pageProps} />
</AppShell>
</SessionProvider>
);
};