diff --git a/apps/trialanderror.org/src/app/layout.tsx b/apps/trialanderror.org/src/app/layout.tsx index 3787b92..006c885 100644 --- a/apps/trialanderror.org/src/app/layout.tsx +++ b/apps/trialanderror.org/src/app/layout.tsx @@ -1,13 +1,13 @@ -import { NextSeo, NextSeoProps } from 'next-seo'; -import Link from 'next/link'; -import { AnalyticsWrapper } from './components/Analytics'; -import { Footer } from './components/Footer'; -import { Overpass, Open_Sans } from '@next/font/google'; +import { NextSeo, NextSeoProps } from 'next-seo' +import Link from 'next/link' +import { AnalyticsWrapper } from './components/Analytics' +import { Footer } from './components/Footer' +import { Overpass, Open_Sans } from '@next/font/google' -import '../styles/globals.css'; -import { Nav } from './components/Nav'; -import Script from 'next/script'; -import { env } from '../env/server.mjs'; +import '../styles/globals.css' +import { Nav } from './components/Nav' +import Script from 'next/script' +import { env } from '../env/server.mjs' // If loading a variable font, you don't need to specify the font weight const overpass = Overpass({ //weight: ['600', '900'], @@ -16,7 +16,7 @@ const overpass = Overpass({ variable: '--font-overpass', // default, can also use "swap" to ensure custom font always shows display: 'swap', -}); +}) const open_sans = Open_Sans({ //weight: ['400', '600'], @@ -25,9 +25,9 @@ const open_sans = Open_Sans({ variable: '--font-open-sans', // default, can also use "swap" to ensure custom font always shows display: 'swap', -}); +}) -export const ogURL = `${env.OG_URL}/api/og/jote`; +export const ogURL = `${env.OG_URL}/api/og/jote` // next-seo.config.js export const SEO = ( @@ -43,7 +43,7 @@ export const SEO = ( locale = 'en_US', alt = '', } = {}, - otherProps?: NextSeoProps + otherProps?: NextSeoProps, ) => ( -); +) -export default function RootLayout({ - children, -}: { - children: React.ReactNode; -}) { +export default function RootLayout({ children }: { children: React.ReactNode }) { return ( - - - + + + - {/* @ts-expect-error TODO: fix once Typescript is able to deal with async components or Next's typescript plugin is less ass */}