diff --git a/web/src/components/cipher_form.rs b/web/src/components/cipher_form.rs index 142df9c..f215101 100644 --- a/web/src/components/cipher_form.rs +++ b/web/src/components/cipher_form.rs @@ -91,7 +91,7 @@ fn RadioButton( value: OperationMode, current: ReadSignal, set_current: WriteSignal, -) -> impl IntoView { +) -> AnyView { view! {
} + .into_any() } #[component] @@ -114,7 +115,7 @@ fn ConfigurationSection( set_mode: WriteSignal, output_fmt: ReadSignal, update_output: impl Fn(OutputFormat) + Copy + Send + 'static, -) -> impl IntoView { +) -> AnyView { let handle_format_change = move |ev| { let val = event_target_value(&ev); let fmt = OutputFormat::from_str(&val).unwrap_or_default(); @@ -176,7 +177,7 @@ fn ConfigurationSection( }} - } + }.into_any() } fn clean_hex_input(input: String) -> String { @@ -187,7 +188,7 @@ fn clean_hex_input(input: String) -> String { } #[component] -fn KeyInput(set_key_input: WriteSignal) -> impl IntoView { +fn KeyInput(set_key_input: WriteSignal) -> AnyView { view! {
@@ -201,6 +202,7 @@ fn KeyInput(set_key_input: WriteSignal) -> impl IntoView { />
} + .into_any() } #[component] @@ -208,7 +210,7 @@ fn TextInput( mode: ReadSignal, text_input: ReadSignal, set_text_input: WriteSignal, -) -> impl IntoView { +) -> AnyView { let handle_hex_input = move |ev| { let val = event_target_value(&ev); let cleaned = clean_hex_input(val); @@ -264,6 +266,7 @@ fn TextInput( }}
} + .into_any() } #[component] @@ -272,7 +275,7 @@ fn OutputBox( output_fmt: ReadSignal, copy_to_clipboard: impl Fn(String) + Copy + Send + 'static, copy_feedback: ReadSignal, -) -> impl IntoView { +) -> AnyView { view! { {move || { if output.get().is_empty() { @@ -294,10 +297,11 @@ fn OutputBox( .into_any() }} } + .into_any() } #[component] -fn ErrorBox(error_msg: ReadSignal) -> impl IntoView { +fn ErrorBox(error_msg: ReadSignal) -> AnyView { view! { {move || { if error_msg.get().is_empty() { @@ -306,4 +310,5 @@ fn ErrorBox(error_msg: ReadSignal) -> impl IntoView { view! {
{error_msg.get()}
}.into_any() }} } + .into_any() }