Fix use of old icons crate
This commit is contained in:
parent
8e44a48b18
commit
a4fb055e84
@ -1,7 +1,6 @@
|
||||
use leptos::leptos_dom::*;
|
||||
use leptos::*;
|
||||
use leptos_icons::*;
|
||||
use leptos_icons::CgIcon::*;
|
||||
|
||||
#[component]
|
||||
pub fn Personal() -> impl IntoView {
|
||||
@ -23,7 +22,7 @@ pub fn Profile() -> impl IntoView {
|
||||
view! {
|
||||
<div class="profile-container">
|
||||
<div class="profile-icon" on:click=open_dropdown>
|
||||
<Icon icon=Icon::from(CgProfile) />
|
||||
<Icon icon=icondata::CgProfile />
|
||||
</div>
|
||||
<div class="dropdown-container" style={move || if dropdown_open() {"display: flex"} else {"display: none"}}>
|
||||
<DropDownNotLoggedIn />
|
||||
|
@ -1,8 +1,5 @@
|
||||
use leptos::leptos_dom::*;
|
||||
use leptos::*;
|
||||
use leptos_icons::BiIcon::*;
|
||||
use leptos_icons::IoIcon::*;
|
||||
use leptos_icons::OcIcon::*;
|
||||
use leptos_icons::*;
|
||||
|
||||
#[component]
|
||||
@ -21,11 +18,11 @@ pub fn Sidebar(setter: WriteSignal<bool>, active: ReadSignal<bool>) -> impl Into
|
||||
<div class="sidebar-top-container">
|
||||
<h2 class="header">LibreTunes</h2>
|
||||
<div class="buttons" on:click=open_dashboard style={move || if active() {"color: #e1e3e1"} else {""}} >
|
||||
<Icon icon=Icon::from(OcHomeFillLg) />
|
||||
<Icon icon=icondata::OcHomeFillLg />
|
||||
<h1>Dashboard</h1>
|
||||
</div>
|
||||
<div class="buttons" on:click=open_search style={move || if !active() {"color: #e1e3e1"} else {""}}>
|
||||
<Icon icon=Icon::from(BiSearchRegular) />
|
||||
<Icon icon=icondata::BiSearchRegular />
|
||||
<h1>Search</h1>
|
||||
</div>
|
||||
</div>
|
||||
@ -43,7 +40,7 @@ pub fn Bottom() -> impl IntoView {
|
||||
<h1 class="header">Playlists</h1>
|
||||
<button class="add-playlist">
|
||||
<div class="add-sign">
|
||||
<Icon icon=Icon::from(IoAddSharp) />
|
||||
<Icon icon=icondata::IoAddSharp />
|
||||
</div>
|
||||
New Playlist
|
||||
</button>
|
||||
|
Loading…
x
Reference in New Issue
Block a user