dont use magnanis for todomv
This commit is contained in:
1 file changed
+1
-2
+1
-2
@@ -7,8 +7,6 @@ fn main() {
|
|||||||
dioxus_desktop::launch(app);
|
dioxus_desktop::launch(app);
|
||||||
}
|
}
|
||||||
|
|
||||||
const _STYLE: &str = manganis::mg!(file("./examples/assets/todomvc.css"));
|
|
||||||
|
|
||||||
#[derive(PartialEq, Eq, Clone, Copy)]
|
#[derive(PartialEq, Eq, Clone, Copy)]
|
||||||
pub enum FilterState {
|
pub enum FilterState {
|
||||||
All,
|
All,
|
||||||
@@ -49,6 +47,7 @@ pub fn app(cx: Scope<()>) -> Element {
|
|||||||
|
|
||||||
cx.render(rsx! {
|
cx.render(rsx! {
|
||||||
section { class: "todoapp",
|
section { class: "todoapp",
|
||||||
|
style { {include_str!("./assets/todomvc.css")} }
|
||||||
TodoHeader { todos: todos }
|
TodoHeader { todos: todos }
|
||||||
section { class: "main",
|
section { class: "main",
|
||||||
if !todos.is_empty() {
|
if !todos.is_empty() {
|
||||||
|
|||||||
Reference in new issue
Block a user