fix formatted strings in components
This commit is contained in:
1 parent
407a82588a
commit
90d0164b9e
8 files changed
+41
-59
No files matched your search
@@ -144,7 +144,7 @@ impl ToTokens for BodyNode {
|
||||
}
|
||||
BodyNode::Component(comp) => comp.to_tokens(tokens),
|
||||
BodyNode::Text(txt) => tokens.append_all(quote! {
|
||||
dioxus_core::DynamicNode::Text(dioxus_core::VText::new(#txt))
|
||||
dioxus_core::DynamicNode::Text(dioxus_core::VText::new(#txt.to_string()))
|
||||
}),
|
||||
BodyNode::RawExpr(exp) => tokens.append_all(quote! {
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user