Undo previous commit, pushed to wrong branch

This commit is contained in:
Daniel Miller 2024-12-11 04:25:08 +00:00
parent b4bc605943
commit e53f74c0f3
2 changed files with 0 additions and 32 deletions

View File

@ -1,32 +0,0 @@
#[component]
pub fn SongPage() -> impl IntoView {
let params = use_params_map();
view! {
<div class="song-container home-component">
{move || params.with(|params| {
match params.get("id").map(|id| id.parse::<i32>()) {
Some(Ok(id)) => {
view! { <SongDetails id /> }.into_view()
},
Some(Err(e)) => {
view! {
<Error<String>
title="Invalid Song ID"
error=e.to_string()
/>
}.into_view()
},
None => {
view! {
<Error<String>
title="No Song ID"
message="You must specify a song ID to view its page."
/>
}.into_view()
}
}
})}
</div>
}
}

View File