From 0182db69b5c810ff9b4340d12582f9869ce97b6b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?H=C3=B6rdle=20Bot?= Date: Fri, 28 Nov 2025 18:07:09 +0100 Subject: [PATCH] =?UTF-8?q?F=C3=BCge=20Collapse-Funktionalit=C3=A4t=20zu?= =?UTF-8?q?=20Admin-Management-Abschnitten=20hinzu?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/[locale]/admin/page.tsx | 78 ++++++++++++++++++++++++++++++++++--- 1 file changed, 72 insertions(+), 6 deletions(-) diff --git a/app/[locale]/admin/page.tsx b/app/[locale]/admin/page.tsx index 1c5dd48..210a4fe 100644 --- a/app/[locale]/admin/page.tsx +++ b/app/[locale]/admin/page.tsx @@ -162,6 +162,9 @@ export default function AdminPage({ params }: { params: { locale: string } }) { const [dailyPuzzles, setDailyPuzzles] = useState([]); const [playingPuzzleId, setPlayingPuzzleId] = useState(null); const [showDailyPuzzles, setShowDailyPuzzles] = useState(false); + const [showSpecials, setShowSpecials] = useState(false); + const [showGenres, setShowGenres] = useState(false); + const [showNews, setShowNews] = useState(false); const fileInputRef = useRef(null); // Check for existing auth on mount @@ -1086,8 +1089,27 @@ export default function AdminPage({ params }: { params: { locale: string } }) { {/* Special Management */}
-

Manage Specials

-
+
+

+ Manage Specials +

+ +
+ {showSpecials && ( + <> +
@@ -1176,12 +1198,33 @@ export default function AdminPage({ params }: { params: { locale: string } }) {
)} + + )}
{/* Genre Management */}
-

Manage Genres

-
+
+

+ Manage Genres +

+ +
+ {showGenres && ( + <> +
)} + + )}
{/* News Management */}
-

Manage News & Announcements

- +
+

+ Manage News & Announcements +

+ +
+ {showNews && ( + <> +
)}
+ + )}