Browse Source

fix formatting issue

Evan Simkowitz 1 year ago
parent
commit
500051e2b2
1 changed files with 36 additions and 12 deletions
  1. 36 12
      packages/dioxus-tui/tests/events.rs

+ 36 - 12
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();
-                } }
+                } 
+            }
         })
     }
 }