diff --git a/src/app.rs b/src/app.rs
index 67a6c7a..d625d1d 100644
--- a/src/app.rs
+++ b/src/app.rs
@@ -17,6 +17,8 @@ pub fn App() -> impl IntoView {
let play_status = PlayStatus::default();
let play_status = create_rw_signal(play_status);
let upload_open = create_rw_signal(false);
+ let add_artist_open = create_rw_signal(false);
+ let add_album_open = create_rw_signal(false);
view! {
// injects a stylesheet into the document
@@ -37,7 +39,13 @@ pub fn App() -> impl IntoView {
}>
- }>
+
+ }>
@@ -58,11 +66,11 @@ use crate::components::upload::*;
/// Renders the home page of your application.
#[component]
-fn HomePage(play_status: RwSignal, upload_open: RwSignal) -> impl IntoView {
+fn HomePage(play_status: RwSignal, upload_open: RwSignal, add_artist_open: RwSignal, add_album_open: RwSignal) -> impl IntoView {
view! {
-
+
// This will render the child route components
diff --git a/src/components.rs b/src/components.rs
index e3fc931..e6757c3 100644
--- a/src/components.rs
+++ b/src/components.rs
@@ -3,4 +3,5 @@ pub mod dashboard;
pub mod search;
pub mod personal;
pub mod upload;
-pub mod upload_dropdown;
\ No newline at end of file
+pub mod upload_dropdown;
+pub mod add_artist;
\ No newline at end of file
diff --git a/src/components/sidebar.rs b/src/components/sidebar.rs
index 6c73b76..a2307a9 100644
--- a/src/components/sidebar.rs
+++ b/src/components/sidebar.rs
@@ -4,7 +4,7 @@ use leptos_icons::*;
use crate::components::upload_dropdown::*;
#[component]
-pub fn Sidebar(upload_open: RwSignal) -> impl IntoView {
+pub fn Sidebar(upload_open: RwSignal, add_artist_open: RwSignal, add_album_open: RwSignal) -> impl IntoView {
use leptos_router::use_location;
let location = use_location();
@@ -28,7 +28,7 @@ pub fn Sidebar(upload_open: RwSignal) -> impl IntoView {
when= move || dropdown_open()
fallback=move || view! {}
>
-
+
diff --git a/src/components/upload.rs b/src/components/upload.rs
index e94d901..b62e66c 100644
--- a/src/components/upload.rs
+++ b/src/components/upload.rs
@@ -16,11 +16,8 @@ pub fn UploadBtn(dialog_open: RwSignal) -> impl IntoView {
};
view! {
-