feat: fe mobile responsive next (#1609)
This commit is contained in:
parent
3cc697832a
commit
a9c1c7d239
89 changed files with 768 additions and 485 deletions
|
|
@ -18,12 +18,14 @@ export type NavLinkProps = {
|
|||
selected: NavIcon
|
||||
normal: NavIcon
|
||||
}
|
||||
mode?: 'expand' | 'collapse'
|
||||
}
|
||||
|
||||
export default function NavLink({
|
||||
name,
|
||||
href,
|
||||
iconMap,
|
||||
mode = 'expand',
|
||||
}: NavLinkProps) {
|
||||
const segment = useSelectedLayoutSegment()
|
||||
const isActive = href.toLowerCase().split('/')?.pop() === segment?.toLowerCase()
|
||||
|
|
@ -45,7 +47,7 @@ export default function NavLink({
|
|||
)}
|
||||
aria-hidden="true"
|
||||
/>
|
||||
{name}
|
||||
{mode === 'expand' && name}
|
||||
</Link>
|
||||
)
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue