1
Fork 0
mirror of https://github.com/Steffo99/todocolors.git synced 2024-11-22 16:24:19 +00:00

RootFooter: Remove unused call to useTranslation

This commit is contained in:
Steffo 2023-08-08 16:28:58 +02:00
parent 298aa8ccef
commit 002473bf1a
Signed by: steffo
GPG key ID: 2A24051445686895
2 changed files with 2 additions and 5 deletions

View file

@ -1,11 +1,8 @@
import {useTranslation} from "@/app/(i18n)/server"
import style from "@/app/[lang]/page.module.css" import style from "@/app/[lang]/page.module.css"
import {default as React} from "react" import {default as React} from "react"
export async function RootFooter({lng}: {lng: string}) { export async function RootFooter() {
const {t} = await useTranslation(lng, "root")
return ( return (
<footer className={style.pageFooter}> <footer className={style.pageFooter}>
<p> <p>

View file

@ -10,7 +10,7 @@ export default async function page({params: {lng}}: {params: {lng: string}}) {
<div className={style.pageRoot}> <div className={style.pageRoot}>
<RootHeader lng={lng}/> <RootHeader lng={lng}/>
<RootMain lng={lng}/> <RootMain lng={lng}/>
<RootFooter lng={lng}/> <RootFooter/>
</div> </div>
) )
} }