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

Loading…
Cancel
Save