style(header): Add icons to the sidebar buttons (#782)

This commit is contained in:
Plutonium141 2024-06-23 19:47:33 +08:00 committed by GitHub
parent 6410a5cc45
commit 7b3e68b72c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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>