mirror of
https://github.com/MetaCubeX/metacubexd.git
synced 2024-11-10 05:15:35 +08:00
style(header): Add icons to the sidebar buttons (#782)
This commit is contained in:
parent
6410a5cc45
commit
7b3e68b72c
@ -121,9 +121,9 @@ export const Header = () => {
|
|||||||
|
|
||||||
<ul class="menu min-h-full w-2/5 gap-2 rounded-r-box bg-base-300 pt-20">
|
<ul class="menu min-h-full w-2/5 gap-2 rounded-r-box bg-base-300 pt-20">
|
||||||
<For each={navs()}>
|
<For each={navs()}>
|
||||||
{({ href, name }) => (
|
{({ href, name, icon }) => (
|
||||||
<li onClick={() => setOpenedDrawer(false)}>
|
<li onClick={() => setOpenedDrawer(false)}>
|
||||||
<A href={href}>{name}</A>
|
<A href={href}>{icon} {name}</A>
|
||||||
</li>
|
</li>
|
||||||
)}
|
)}
|
||||||
</For>
|
</For>
|
||||||
|
Loading…
Reference in New Issue
Block a user