rm unused code
This commit is contained in:
parent
050e606b2a
commit
a78974bc2f
1 changed files with 0 additions and 7 deletions
|
@ -18,13 +18,6 @@ fn Meta() -> impl IntoView {
|
||||||
#[component]
|
#[component]
|
||||||
fn Scoreboard() -> impl IntoView {
|
fn Scoreboard() -> impl IntoView {
|
||||||
let game_meta = expect_context::<ReadSignal<Option<GameStateMeta>>>();
|
let game_meta = expect_context::<ReadSignal<Option<GameStateMeta>>>();
|
||||||
let (czar_name, set_czar_name) = create_signal("".to_string());
|
|
||||||
|
|
||||||
create_effect(move |_| {
|
|
||||||
if let Some(meta) = game_meta() {
|
|
||||||
set_czar_name(meta.czar)
|
|
||||||
}
|
|
||||||
});
|
|
||||||
|
|
||||||
view! {
|
view! {
|
||||||
<Show when=move || { game_meta().is_some() }>
|
<Show when=move || { game_meta().is_some() }>
|
||||||
|
|
Loading…
Add table
Reference in a new issue