From a3538d1322a7a1d42f9c75bfcc67e3b88521bbab Mon Sep 17 00:00:00 2001 From: Rama Priyanto Date: Mon, 9 Jun 2025 16:56:30 +0700 Subject: [PATCH] fix:disable button --- app/(admin)/admin/article/page.tsx | 8 ++ app/(admin)/admin/master-category/page.tsx | 4 +- components/landing/HeaderNews.tsx | 85 +++++++++++----------- 3 files changed, 53 insertions(+), 44 deletions(-) diff --git a/app/(admin)/admin/article/page.tsx b/app/(admin)/admin/article/page.tsx index abefe5a..4fe0fad 100644 --- a/app/(admin)/admin/article/page.tsx +++ b/app/(admin)/admin/article/page.tsx @@ -21,6 +21,14 @@ export default function BasicPage() { */} + diff --git a/app/(admin)/admin/master-category/page.tsx b/app/(admin)/admin/master-category/page.tsx index 8ea1dd7..4f71f99 100644 --- a/app/(admin)/admin/master-category/page.tsx +++ b/app/(admin)/admin/master-category/page.tsx @@ -176,7 +176,7 @@ export default function MasterCategoryTable() {
- {/* */} +
diff --git a/components/landing/HeaderNews.tsx b/components/landing/HeaderNews.tsx index 9570169..c24592f 100644 --- a/components/landing/HeaderNews.tsx +++ b/components/landing/HeaderNews.tsx @@ -82,7 +82,7 @@ export default function HeaderNews() {
- {banner.length > 0 ? ( + {banner?.length > 0 ? (
- {banner.length > 0 ? ( + {banner?.length > 0 ? ( - {banner.map((newsItem: any, index: number) => ( - - - headernews + {banner?.lenth > 0 && + banner.map((newsItem: any, index: number) => ( + + + headernews - -
- -

- {textEllipsis(newsItem.title, 40)} -

- -
-

- {convertDateFormat(newsItem.createdAt)} WIB -

-

- - {newsItem.viewCount === null - ? 0 - : newsItem.viewCount} -

+ +
+ +

+ {textEllipsis(newsItem.title, 40)} +

+ +
+

+ {convertDateFormat(newsItem.createdAt)} WIB +

+

+ + {newsItem.viewCount === null + ? 0 + : newsItem.viewCount} +

+
-
- - - - ))} + + + + ))} ) : (