chore: add lang for logout href

This commit is contained in:
Matilda Landström
2024-05-21 12:07:45 +02:00
parent af1d65f4bb
commit 3085cccf8b
2 changed files with 5 additions and 3 deletions

View File

@@ -20,7 +20,7 @@ export default async function MyPages({
<Breadcrumbs />
<div className={styles.content}>
<Sidebar />
<Sidebar lang={params.lang} />
<MaxWidth className={styles.blocks} tag="main">
{accountPage.content.length ? (
<Content lang={params.lang} content={accountPage.content} />

View File

@@ -9,7 +9,9 @@ import Title from "@/components/Title"
import styles from "./sidebar.module.css"
export default async function Sidebar() {
import { LangParams } from "@/types/params"
export default async function Sidebar(params: LangParams) {
const navigation = await serverClient().contentstack.myPages.navigation.get()
return (
@@ -42,7 +44,7 @@ export default async function Sidebar() {
</Fragment>
))}
<Link href={logout[lang]} variant="sidebar">
<Link href={logout[params.lang]} variant="sidebar">
Log out <LogOut height={16} width={16} />
</Link>
</nav>