From 69425d0b93a6266ab38448b63af96d3b9437a375 Mon Sep 17 00:00:00 2001 From: Tiago Ribeiro Date: Sun, 15 Oct 2023 23:03:54 +0100 Subject: [PATCH] Updated the ExamList to only appear to developers --- src/pages/(admin)/Lists/index.tsx | 32 +++++++++++++++++-------------- 1 file changed, 18 insertions(+), 14 deletions(-) diff --git a/src/pages/(admin)/Lists/index.tsx b/src/pages/(admin)/Lists/index.tsx index aabcac82..66c38e62 100644 --- a/src/pages/(admin)/Lists/index.tsx +++ b/src/pages/(admin)/Lists/index.tsx @@ -20,17 +20,19 @@ export default function Lists({user}: {user: User}) { }> User List - - clsx( - "w-full rounded-lg py-2.5 text-sm font-medium leading-5 text-mti-purple-light", - "ring-white ring-opacity-60 ring-offset-2 ring-offset-mti-purple-light focus:outline-none focus:ring-2", - "transition duration-300 ease-in-out", - selected ? "bg-white shadow" : "text-blue-100 hover:bg-white/[0.12] hover:text-mti-purple-dark", - ) - }> - Exam List - + {user.type === "developer" && ( + + clsx( + "w-full rounded-lg py-2.5 text-sm font-medium leading-5 text-mti-purple-light", + "ring-white ring-opacity-60 ring-offset-2 ring-offset-mti-purple-light focus:outline-none focus:ring-2", + "transition duration-300 ease-in-out", + selected ? "bg-white shadow" : "text-blue-100 hover:bg-white/[0.12] hover:text-mti-purple-dark", + ) + }> + Exam List + + )} clsx( @@ -47,9 +49,11 @@ export default function Lists({user}: {user: User}) { - - - + {user.type === "developer" && ( + + + + )}