style: rustfmt run
This commit is contained in:
1 parent
4a2a5ca9ff
commit
9427810026
5 files changed
+22
-25
No files matched your search
@@ -18,10 +18,12 @@ fn SidebarTab(
|
||||
});
|
||||
|
||||
view! {
|
||||
<A href={move || path.get()}>
|
||||
<div class="p-3 transition-all font-bold"
|
||||
<A href=move || path.get()>
|
||||
<div
|
||||
class="p-3 transition-all font-bold"
|
||||
class=(["bg-transparent", "text-white"], move || !selected.get())
|
||||
class=(["bg-white", "text-black"], move || selected.get())>
|
||||
class=(["bg-white", "text-black"], move || selected.get())
|
||||
>
|
||||
{name}
|
||||
</div>
|
||||
</A>
|
||||
@@ -40,12 +42,9 @@ pub fn TabSidebarList(
|
||||
<For
|
||||
each=move || tabs.get()
|
||||
key=|info| info.name.clone()
|
||||
let(TabInfo {name, path})
|
||||
let(TabInfo { name, path })
|
||||
>
|
||||
<SidebarTab
|
||||
name=name
|
||||
path=path
|
||||
/>
|
||||
<SidebarTab name=name path=path />
|
||||
</For>
|
||||
</nav>
|
||||
|
||||
|
||||
Reference in new issue
Block a user