From 10f4c2189d0731cbdbc1b97a2ec73bb17ddb85bf Mon Sep 17 00:00:00 2001 From: Brian Carlsen Date: Tue, 16 Apr 2024 15:50:19 +0200 Subject: [PATCH] Revert client template, removing unintended changes. --- leptos_macro/src/view/client_template.rs | 19 +++++++------------ 1 file changed, 7 insertions(+), 12 deletions(-) diff --git a/leptos_macro/src/view/client_template.rs b/leptos_macro/src/view/client_template.rs index d54bc5c07f..bc71fd7927 100644 --- a/leptos_macro/src/view/client_template.rs +++ b/leptos_macro/src/view/client_template.rs @@ -321,19 +321,14 @@ fn attr_to_tokens( // Classes else if let Some(name) = name.strip_prefix("class:") { let value = attribute_value(node); - match value { - syn::Expr::Lit(value) => { - todo!(); - } - _ => expressions.push(quote_spanned! { - span=> ::leptos::leptos_dom::class_helper( - ::leptos::wasm_bindgen::JsCast::unchecked_ref(&#el_id), - #name.into(), - ::leptos::IntoClass::into_class(#value), - ) - }), - }; + expressions.push(quote_spanned! { + span=> ::leptos::leptos_dom::class_helper( + ::leptos::wasm_bindgen::JsCast::unchecked_ref(&#el_id), + #name.into(), + ::leptos::IntoClass::into_class(#value), + ) + }); } // Attributes else {