fix: destructure lang prop
This commit is contained in:
@@ -11,7 +11,7 @@ import styles from "./sidebar.module.css"
|
|||||||
|
|
||||||
import { LangParams } from "@/types/params"
|
import { LangParams } from "@/types/params"
|
||||||
|
|
||||||
export default async function Sidebar(params: LangParams) {
|
export default async function Sidebar({ lang }: LangParams) {
|
||||||
const navigation = await serverClient().contentstack.myPages.navigation.get()
|
const navigation = await serverClient().contentstack.myPages.navigation.get()
|
||||||
|
|
||||||
return (
|
return (
|
||||||
@@ -44,7 +44,7 @@ export default async function Sidebar(params: LangParams) {
|
|||||||
</Fragment>
|
</Fragment>
|
||||||
))}
|
))}
|
||||||
|
|
||||||
<Link href={logout[params.lang]} variant="sidebar">
|
<Link href={logout[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