From 04142aa61c729357ebc248514c5c08f24a3fff95 Mon Sep 17 00:00:00 2001 From: Anang Yusman Date: Mon, 29 Sep 2025 17:25:22 +0800 Subject: [PATCH] update --- components/table/article-table.tsx | 32 ++++++++++++------------------ 1 file changed, 13 insertions(+), 19 deletions(-) diff --git a/components/table/article-table.tsx b/components/table/article-table.tsx index e8f16df..cfc6718 100644 --- a/components/table/article-table.tsx +++ b/components/table/article-table.tsx @@ -244,18 +244,15 @@ export default function ArticleTable() { - {(username === "admin-mabes" || - Number(userId) === article.createdById) && ( - - - - Edit - - - )} + + + + Edit + + {username === "admin-mabes" && ( )} - {(username === "admin-mabes" || - Number(userId) === article.createdById) && ( - handleDelete(article.id)}> - - Delete - - )} + handleDelete(article.id)}> + + Delete +