From 62bffebcc841846a535c90dca88c74d1a6c33956 Mon Sep 17 00:00:00 2001 From: DerTyp7 Date: Thu, 9 Oct 2025 14:33:04 +0200 Subject: [PATCH] Add admin link to header when logged in --- src/components/Header.tsx | 20 +++++++++++++------- 1 file changed, 13 insertions(+), 7 deletions(-) diff --git a/src/components/Header.tsx b/src/components/Header.tsx index d6cfae5..530672b 100644 --- a/src/components/Header.tsx +++ b/src/components/Header.tsx @@ -56,13 +56,19 @@ export default function Header() { {isAuth ? ( -

{ - handleLogout(); - }} - className={`${styles.navLink}`}> - Logout -

+ <> + + Admin + + +

{ + handleLogout(); + }} + className={`${styles.navLink}`}> + Logout +

+ ) : ( '' )}