Skip to content

Commit

Permalink
Use @next/third-parties
Browse files Browse the repository at this point in the history
  • Loading branch information
TyHil committed Oct 8, 2024
1 parent 64b41d6 commit 1785cc4
Show file tree
Hide file tree
Showing 5 changed files with 23 additions and 29 deletions.
1 change: 0 additions & 1 deletion .env.example
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,4 @@ PSQL_PASS=
DATABASE_URL=
DISCORD_CLIENT_ID=
DISCORD_CLIENT_SECRET=
NEXT_PUBLIC_MEASUREMENT_ID=
```
20 changes: 20 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
"dependencies": {
"@auth/drizzle-adapter": "^0.3.2",
"@hookform/resolvers": "^3.3.2",
"@next/third-parties": "^14.2.15",
"@radix-ui/react-alert-dialog": "^1.0.5",
"@radix-ui/react-dialog": "^1.0.5",
"@radix-ui/react-dropdown-menu": "^2.0.6",
Expand Down
4 changes: 2 additions & 2 deletions src/app/layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import { TRPCReactProvider } from '@src/trpc/react';
import Sidebar from '@src/components/nav/Sidebar';
import { type Metadata } from 'next';

import GoogleAnalytics from '@src/components/googleAnalytics';
import { GoogleAnalytics } from '@next/third-parties/google'

const inter = Inter({
subsets: ['latin'],
Expand Down Expand Up @@ -43,12 +43,12 @@ export default function RootLayout({
}) {
return (
<html lang="en">
<GoogleAnalytics />
<body className={`font-sans ${inter.variable}`}>
<TRPCReactProvider headers={headers()}>
<Sidebar />
<div className="max-h-screen overflow-y-scroll">{children}</div>
</TRPCReactProvider>
<GoogleAnalytics gaId="G-FYTBHVKNG6" />
</body>
</html>
);
Expand Down
26 changes: 0 additions & 26 deletions src/components/googleAnalytics.tsx

This file was deleted.

0 comments on commit 1785cc4

Please sign in to comment.