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 && ( + <> +
)}
+ + )}