mirror of
https://github.com/yangshun/tech-interview-handbook.git
synced 2026-02-02 18:21:37 +08:00
feat: add application shell
This commit is contained in:
@@ -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>
|
||||
);
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user