From 79a5967dec100f5ddf1c0cd57772e122069efc2a Mon Sep 17 00:00:00 2001 From: Anang Yusman Date: Mon, 29 Sep 2025 17:03:37 +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 227f9ae..60c8354 100644 --- a/components/table/article-table.tsx +++ b/components/table/article-table.tsx @@ -243,18 +243,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 +