Clean up unnecessary curly braces

main
Elnu 1 year ago
parent ff53f33d56
commit 33e42c17bb

@ -40,8 +40,7 @@ fn ResultMessage(cx: Scope, message: ReadSignal<Option<ResultMessageData>>) -> i
message.track(); message.track();
set_open(true); set_open(true);
}); });
move || { move || view! { cx,
view! { cx,
<Show when=move || open() fallback=|_| ()> <Show when=move || open() fallback=|_| ()>
{move || message().map(|ResultMessageData { title, message, colorway }| view! { cx, {move || message().map(|ResultMessageData { title, message, colorway }| view! { cx,
<div class=class_list!["box", <Colorway as Into<&str>>::into(colorway)] style="position: relative"> <div class=class_list!["box", <Colorway as Into<&str>>::into(colorway)] style="position: relative">
@ -53,7 +52,6 @@ fn ResultMessage(cx: Scope, message: ReadSignal<Option<ResultMessageData>>) -> i
</Show> </Show>
} }
} }
}
#[derive(From, IntoStaticStr)] #[derive(From, IntoStaticStr)]
enum ReadKleError { enum ReadKleError {

Loading…
Cancel
Save