chore: add lang for logout href
This commit is contained in:
@@ -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} />
|
||||
|
||||
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user