Skip to content

Commit

Permalink
cargo fmt
Browse files Browse the repository at this point in the history
Signed-off-by: bayer <bayernator@protonmail.com>
  • Loading branch information
Bayernatoor committed Feb 5, 2024
1 parent d04169f commit 5aca475
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/routes/guideselector.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
use crate::extras::back::BackButton;
use leptos::ev::MouseEvent;
use leptos::*;
use crate::extras::back::BackButton;

#[component]
fn BeginnerButton<F>(on_click: F) -> impl IntoView
Expand Down Expand Up @@ -50,7 +50,7 @@ pub fn GuideSelector() -> impl IntoView {
let (intermediate_clicked, set_intermediate_clicked) = create_signal(false);
let (advanced_clicked, set_advanced_clicked) = create_signal(false);

let level = "beginner";
let level = "beginner";
let device = "android";
let path = format!("guides/{level}/{device}");

Expand All @@ -65,7 +65,7 @@ pub fn GuideSelector() -> impl IntoView {

<Show
when=move || beginner_clicked() || intermediate_clicked() || advanced_clicked()
fallback= move || view! {<BeginnerButton on_click=move |_| {set_beginner_clicked.update(|value| *value = !*value); set_intermediate_clicked.set(false); set_advanced_clicked.set(false)} />
fallback= move || view! {<BeginnerButton on_click=move |_| {set_beginner_clicked.update(|value| *value = !*value); set_intermediate_clicked.set(false); set_advanced_clicked.set(false)} />
<IntermediateButton on_click=move |_| {set_intermediate_clicked.update(|value| *value = !*value); set_beginner_clicked.set(false); set_advanced_clicked.set(false)} />
<AdvancedButton on_click=move |_| {set_advanced_clicked.update(|value| *value = !*value); set_beginner_clicked.set(false); set_intermediate_clicked.set(false)} /> }
>
Expand Down

0 comments on commit 5aca475

Please sign in to comment.