chore: add lang for logout href
This commit is contained in:
@@ -20,7 +20,7 @@ export default async function MyPages({
|
|||||||
<Breadcrumbs />
|
<Breadcrumbs />
|
||||||
|
|
||||||
<div className={styles.content}>
|
<div className={styles.content}>
|
||||||
<Sidebar />
|
<Sidebar lang={params.lang} />
|
||||||
<MaxWidth className={styles.blocks} tag="main">
|
<MaxWidth className={styles.blocks} tag="main">
|
||||||
{accountPage.content.length ? (
|
{accountPage.content.length ? (
|
||||||
<Content lang={params.lang} content={accountPage.content} />
|
<Content lang={params.lang} content={accountPage.content} />
|
||||||
|
|||||||
@@ -9,7 +9,9 @@ import Title from "@/components/Title"
|
|||||||
|
|
||||||
import styles from "./sidebar.module.css"
|
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()
|
const navigation = await serverClient().contentstack.myPages.navigation.get()
|
||||||
|
|
||||||
return (
|
return (
|
||||||
@@ -42,7 +44,7 @@ export default async function Sidebar() {
|
|||||||
</Fragment>
|
</Fragment>
|
||||||
))}
|
))}
|
||||||
|
|
||||||
<Link href={logout[lang]} variant="sidebar">
|
<Link href={logout[params.lang]} variant="sidebar">
|
||||||
Log out <LogOut height={16} width={16} />
|
Log out <LogOut height={16} width={16} />
|
||||||
</Link>
|
</Link>
|
||||||
</nav>
|
</nav>
|
||||||
|
|||||||
Reference in New Issue
Block a user