From ec2e0ef1b8967584f8ce7c9f738c28950b672502 Mon Sep 17 00:00:00 2001
From: Rama Priyanto
Date: Tue, 11 Feb 2025 15:39:23 +0700
Subject: [PATCH] fix:detail article space
---
components/page/detail-news.tsx | 20 +++++++++++---------
1 file changed, 11 insertions(+), 9 deletions(-)
diff --git a/components/page/detail-news.tsx b/components/page/detail-news.tsx
index ee83b17..8af1b82 100644
--- a/components/page/detail-news.tsx
+++ b/components/page/detail-news.tsx
@@ -153,15 +153,17 @@ export default function DetailNews(props: { data: any; listArticle: any }) {
-
+ {data?.files?.length > 0 && (
+
+ )}
- {data?.files?.length > 1 && (
+ {data?.files?.length > 0 && (
{data?.files?.map((file: any, index: number) => (