diff --git a/src/components/create_playlist.rs b/src/components/create_playlist.rs index 4c46e02..67702ab 100644 --- a/src/components/create_playlist.rs +++ b/src/components/create_playlist.rs @@ -4,7 +4,7 @@ use leptos::leptos_dom::*; use crate::api::playlists::create_playlist; #[component] -pub fn CreatePlayList(opened: ReadSignal,closer: WriteSignal) -> impl IntoView { +pub fn CreatePlayList(closer: WriteSignal) -> impl IntoView { let (playlist_name, set_playlist_name) = create_signal("".to_string()); @@ -24,7 +24,7 @@ pub fn CreatePlayList(opened: ReadSignal,closer: WriteSignal) -> imp }; view! { -
+
diff --git a/src/components/playlists.rs b/src/components/playlists.rs index 6082b73..9b4849f 100644 --- a/src/components/playlists.rs +++ b/src/components/playlists.rs @@ -34,7 +34,13 @@ pub fn Playlists() -> impl IntoView { New Playlist
- +
} + > + + +
    { move || playlists.get().iter().enumerate().map(|(index,playlist)| view! {