From 627306a5c5dbab4da6ab54e53aa3de6ae3ae93ae Mon Sep 17 00:00:00 2001 From: Alexey Bagno Date: Wed, 2 Sep 2026 20:03:28 +0500 Subject: [PATCH] chore: factor out dashboard --- web/src/App.tsx | 36 ++++++++++++++++++++++-------------- 1 file changed, 22 insertions(+), 14 deletions(-) diff --git a/web/src/App.tsx b/web/src/App.tsx index a616279..dcf4018 100644 --- a/web/src/App.tsx +++ b/web/src/App.tsx @@ -134,6 +134,27 @@ function Nav({ ); } +function Dashboard({ + links, + monitors, +}: { + links: Link[]; + monitors: Monitor[]; +}) { + return ( +
+ + + +
+ {monitors.map((it) => ( + + ))} +
+
+ ); +} + function MobileTopBar({ category }: { category: Category }) { const label = CATEGORIES.find((c) => c.id === category)?.label ?? ""; return ( @@ -198,20 +219,7 @@ function MainScreen({ }`} > {category === "dashboard" && ( -
-
- - -
-
- -
- {content.monitors.map((it) => ( - - ))} -
-
-
+ )} {category === "exec" && (