From 500051e2b26844a257ef65dcf75cf6494b1951ed Mon Sep 17 00:00:00 2001 From: Evan Simkowitz Date: Wed, 23 Aug 2023 20:23:54 -0400 Subject: [PATCH] fix formatting issue --- packages/dioxus-tui/tests/events.rs | 48 +++++++++++++++++++++-------- 1 file changed, 36 insertions(+), 12 deletions(-) diff --git a/packages/dioxus-tui/tests/events.rs b/packages/dioxus-tui/tests/events.rs index 01fea9934..6282ef21d 100644 --- a/packages/dioxus-tui/tests/events.rs +++ b/packages/dioxus-tui/tests/events.rs @@ -134,9 +134,13 @@ fn mouse_up() { modifiers: KeyModifiers::NONE, })); cx.render(rsx! { - div { width: "100%", height: "100%", onmouseup: move |_| { + div { + width: "100%", + height: "100%", + onmouseup: move |_| { tui_ctx.quit(); - } } + } + } }) } } @@ -169,9 +173,13 @@ fn mouse_enter() { modifiers: KeyModifiers::NONE, })); cx.render(rsx! { - div { width: "50%", height: "50%", onmouseenter: move |_| { + div { + width: "50%", + height: "50%", + onmouseenter: move |_| { tui_ctx.quit(); - } } + } + } }) } } @@ -204,9 +212,13 @@ fn mouse_exit() { modifiers: KeyModifiers::NONE, })); cx.render(rsx! { - div { width: "50%", height: "50%", onmouseenter: move |_| { + div { + width: "50%", + height: "50%", + onmouseenter: move |_| { tui_ctx.quit(); - } } + } + } }) } } @@ -239,9 +251,13 @@ fn mouse_move() { modifiers: KeyModifiers::NONE, })); cx.render(rsx! { - div { width: "100%", height: "100%", onmousemove: move |_| { + div { + width: "100%", + height: "100%", + onmousemove: move |_| { tui_ctx.quit(); - } } + } + } }) } } @@ -314,9 +330,13 @@ fn click() { modifiers: KeyModifiers::NONE, })); cx.render(rsx! { - div { width: "100%", height: "100%", onclick: move |_| { + div { + width: "100%", + height: "100%", + onclick: move |_| { tui_ctx.quit(); - } } + } + } }) } } @@ -349,9 +369,13 @@ fn context_menu() { modifiers: KeyModifiers::NONE, })); cx.render(rsx! { - div { width: "100%", height: "100%", oncontextmenu: move |_| { + div { + width: "100%", + height: "100%", + oncontextmenu: move |_| { tui_ctx.quit(); - } } + } + } }) } }