Add title to sidebar menu

This commit is contained in:
AkiraFukushima 2024-01-24 23:22:50 +09:00
parent 18e4962b33
commit ad0daaf445
No known key found for this signature in database
GPG Key ID: B6E51BAC4DE1A957
1 changed files with 2 additions and 0 deletions

View File

@ -85,6 +85,7 @@ export default function Layout({ children }: LayoutProps) {
selected={router.asPath.includes(page.path)}
onClick={() => router.push(page.path)}
className="sidebar-menu-item text-blue-100"
title={page.title}
>
<ListItemPrefix>{page.icon}</ListItemPrefix>
<span className="sidebar-menu">{page.title}</span>
@ -96,6 +97,7 @@ export default function Layout({ children }: LayoutProps) {
selected={router.asPath.includes(`list_${list.id}`)}
onClick={() => router.push({ pathname: `/accounts/${router.query.id}/list_${list.id}` })}
className="sidebar-menu-item text-blue-100"
title={list.title}
>
<ListItemPrefix>
<FaList />