Optimise month field

This commit is contained in:
Benji Grant 2023-06-09 03:51:20 +10:00
parent 028d63992c
commit 25d029ba57
6 changed files with 35 additions and 30 deletions

View file

@ -4,13 +4,11 @@ import Header from '/src/components/Header/Header'
const Layout = async ({ children }: { children: React.ReactNode }) => <>
<Content>
{/* @ts-expect-error Async Server Component */}
<Header />
</Content>
{children}
{/* @ts-expect-error Async Server Component */}
<Footer />
</>

View file

@ -15,7 +15,6 @@ export const metadata: Metadata = {
*/
const Page = async () => <>
<Content isSlim>
{/* @ts-expect-error Async Server Component */}
<Header isFull isSmall />
</Content>

View file

@ -30,7 +30,6 @@ const Page = async () => {
return <>
<Content>
{/* @ts-expect-error Async Server Component */}
<Header />
<h1>{t('help:name')}</h1>
@ -82,7 +81,6 @@ const Page = async () => {
</Content>
</Section>
{/* @ts-expect-error Async Server Component */}
<Footer />
</>
}

View file

@ -18,7 +18,6 @@ const Page = async () => {
return <>
<Content>
{/* @ts-expect-error Async Server Component */}
<Header isFull />
</Content>
@ -32,7 +31,6 @@ const Page = async () => {
<Content>
<h2>{t('about.name')}</h2>
{/* @ts-expect-error Async Server Component */}
<Stats />
<P><Trans i18nKey="about.content.p1" t={t} i18n={i18n}>_<br /><Link href="/how-to" rel="help">_</Link>_</Trans></P>
@ -48,7 +46,6 @@ const Page = async () => {
</Content>
</Section>
{/* @ts-expect-error Async Server Component */}
<Footer />
</>
}

View file

@ -24,7 +24,6 @@ const Page = async () => {
return <>
<Content>
{/* @ts-expect-error Async Server Component */}
<Header />
<h1>{t('privacy:name')}</h1>
@ -86,7 +85,6 @@ const Page = async () => {
</Content>
</Section>
{/* @ts-expect-error Async Server Component */}
<Footer />
</>
}