From 7e7d58864f4dda6d23feb77c924a7882b24f78f8 Mon Sep 17 00:00:00 2001 From: kimjaehyeon0101 <47347352-kimjaehyeon0101@users.noreply.replit.com> Date: Mon, 29 Sep 2025 21:59:07 +0000 Subject: [PATCH] Remove the Admin Dashboard button from the auction screen Removes the conditional rendering of the "Admin Dashboard" button in the Auctions page component when the user is authenticated and their role is 'admin' or 'superadmin'. Replit-Commit-Author: Agent Replit-Commit-Session-Id: 069d4324-6c40-4355-955e-c714a50de1ea Replit-Commit-Checkpoint-Type: full_checkpoint Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/3df548ff-50ae-432f-9be4-25d34eccc983/069d4324-6c40-4355-955e-c714a50de1ea/9tQ591o --- client/src/pages/Auctions.tsx | 24 +++++++----------------- 1 file changed, 7 insertions(+), 17 deletions(-) diff --git a/client/src/pages/Auctions.tsx b/client/src/pages/Auctions.tsx index b9e87aa..9984ba3 100644 --- a/client/src/pages/Auctions.tsx +++ b/client/src/pages/Auctions.tsx @@ -186,23 +186,13 @@ export default function Auctions() { {isAuthenticated && user ? ( - <> - {(user.role === 'admin' || user.role === 'superadmin') && ( - - - - )} - - - + ) : (