fix: add nav title
This commit is contained in:
@@ -5,6 +5,7 @@ import { GetNavigationMyPages } from "@/lib/graphql/Query/NavigationMyPages.grap
|
|||||||
import { Fragment } from "react"
|
import { Fragment } from "react"
|
||||||
import { LogOut } from "react-feather"
|
import { LogOut } from "react-feather"
|
||||||
import Link from "@/components/TempDesignSystem/Link"
|
import Link from "@/components/TempDesignSystem/Link"
|
||||||
|
import Title from "../Title"
|
||||||
|
|
||||||
import styles from "./sidebar.module.css"
|
import styles from "./sidebar.module.css"
|
||||||
|
|
||||||
@@ -24,6 +25,9 @@ export default async function Sidebar({ lang }: SidebarProps) {
|
|||||||
return (
|
return (
|
||||||
<aside className={styles.sidebar}>
|
<aside className={styles.sidebar}>
|
||||||
<nav className={styles.nav}>
|
<nav className={styles.nav}>
|
||||||
|
<Title level="h5" uppercase>
|
||||||
|
{navigation.title}
|
||||||
|
</Title>
|
||||||
{menuItems.map((item) => (
|
{menuItems.map((item) => (
|
||||||
<Fragment key={item.uid}>
|
<Fragment key={item.uid}>
|
||||||
<Link href={item.url} variant="sidebar">
|
<Link href={item.url} variant="sidebar">
|
||||||
|
|||||||
@@ -59,7 +59,7 @@ export type NavigationItem = {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
export type NavigationMyPages = { items: NavigationItem[] }
|
export type NavigationMyPages = { items: NavigationItem[]; title: string }
|
||||||
|
|
||||||
export type GetNavigationMyPagesData = {
|
export type GetNavigationMyPagesData = {
|
||||||
all_navigation_my_pages: AllRequestResponse<NavigationMyPages>
|
all_navigation_my_pages: AllRequestResponse<NavigationMyPages>
|
||||||
|
|||||||
Reference in New Issue
Block a user