From 8a9cacf7b45543a062d7e4fe8c39f24678c6556e Mon Sep 17 00:00:00 2001 From: "fredy.siswanto" Date: Thu, 13 Mar 2025 11:11:33 +0700 Subject: [PATCH] feat: conditionally render delete button based on category code --- app/pages/dashboard-categories/index.tsx | 22 +++++++++++++--------- 1 file changed, 13 insertions(+), 9 deletions(-) diff --git a/app/pages/dashboard-categories/index.tsx b/app/pages/dashboard-categories/index.tsx index 3cc2f1a..3525178 100644 --- a/app/pages/dashboard-categories/index.tsx +++ b/app/pages/dashboard-categories/index.tsx @@ -68,15 +68,19 @@ export const CategoriesPage = () => { > - + {data.code === 'spotlight' ? ( + '' + ) : ( + + )} ), }