From dd8e9a623ffff1996589d103dd08715637f0b2ba Mon Sep 17 00:00:00 2001 From: lucas lelievre Date: Mon, 7 Nov 2022 02:49:47 +0100 Subject: [PATCH] Kepp wifi between pages (#28) --- src/App.tsx | 38 +++++++++++++++++++------------------- 1 file changed, 19 insertions(+), 19 deletions(-) diff --git a/src/App.tsx b/src/App.tsx index bb5208a3c..8b53a43d4 100644 --- a/src/App.tsx +++ b/src/App.tsx @@ -68,11 +68,9 @@ function Layout() { - - - - + + + } > } /> @@ -147,21 +145,23 @@ function App() { -
-
- {!websocketAPI.isConnected && ( - <> - -
- {websocketAPI.isFistConnection - ? 'Connecting to the server' - : 'Connection lost to the server. Trying to reconnect...'} -
- - )} - {websocketAPI.isConnected && } + +
+
+ {!websocketAPI.isConnected && ( + <> + +
+ {websocketAPI.isFistConnection + ? 'Connecting to the server' + : 'Connection lost to the server. Trying to reconnect...'} +
+ + )} + {websocketAPI.isConnected && } +
-
+