From ebd665cf46bfa38deef90eb990904eb522c90846 Mon Sep 17 00:00:00 2001 From: lyc8503 Date: Sun, 21 Sep 2025 21:54:42 +0800 Subject: [PATCH] remove collapse --- components/OverallStatus.tsx | 53 ++++++++++-------------------------- 1 file changed, 15 insertions(+), 38 deletions(-) diff --git a/components/OverallStatus.tsx b/components/OverallStatus.tsx index 4955038..3874959 100644 --- a/components/OverallStatus.tsx +++ b/components/OverallStatus.tsx @@ -77,9 +77,6 @@ export default function OverallStatus({ ), })) - const [activeOpen, setActiveOpen] = useState(true) - const [upcomingOpen, setUpcomingOpen] = useState(false) - return (
{icon}
@@ -96,47 +93,27 @@ export default function OverallStatus({ {/* Active Maintenance */} {activeMaintenances.length > 0 && ( <> - - - Ongoing Maintenance - - - - - {activeMaintenances.map((maintenance, idx) => ( - - ))} - + {activeMaintenances.map((maintenance, idx) => ( + + ))} )} {/* Upcoming Maintenance */} {upcomingMaintenances.length > 0 && ( <> - - - Upcoming Maintenance - - - - - {upcomingMaintenances.map((maintenance, idx) => ( - - ))} - + {upcomingMaintenances.map((maintenance, idx) => ( + + ))} )}