From d884ed1732e9fae711a6c86a7b3fbc8df0824b37 Mon Sep 17 00:00:00 2001 From: Rama Priyanto Date: Mon, 10 Mar 2025 13:03:43 +0700 Subject: [PATCH] feat:meta data --- components/landing/banner-new.tsx | 2 +- components/main/detail/new-detail.tsx | 69 +++++++++++++++++---------- 2 files changed, 45 insertions(+), 26 deletions(-) diff --git a/components/landing/banner-new.tsx b/components/landing/banner-new.tsx index 48b96e9..700cb1a 100644 --- a/components/landing/banner-new.tsx +++ b/components/landing/banner-new.tsx @@ -198,7 +198,7 @@ export default function BannerHumasNew() { {`humasbanner-${index}`} ))} diff --git a/components/main/detail/new-detail.tsx b/components/main/detail/new-detail.tsx index e157f9d..57b4cf4 100644 --- a/components/main/detail/new-detail.tsx +++ b/components/main/detail/new-detail.tsx @@ -11,6 +11,7 @@ import { ChevronRightIcon, UserIcon } from "@/components/icons"; import { close, loading } from "@/config/swal"; import { saveActivity } from "@/service/activity-log"; import Cookies from "js-cookie"; +import Head from "next/head"; const token = Cookies.get("access_token"); const uid = Cookies.get("uie"); @@ -19,7 +20,7 @@ export default function NewsDetailPage() { const params = useParams(); const id: any = params?.id; const pathname = usePathname(); - const [detailArticle, setDetailArticle] = useState(); + const [detailArticle, setDetailArticle] = useState(); const [articles, setArticles] = useState([]); useEffect(() => { @@ -55,33 +56,51 @@ export default function NewsDetailPage() { const resActivity = await saveActivity(req, token); }; return ( -
-
-
- - Beranda - - -

Berita

-
-
- -
+ <> + {" "} + + {detailArticle?.title} + + + + + + + + + + +
+
+
+ + Beranda + + +

Berita

+
+
+ +
+ +
+
+ +
+ +
+ +
+ +
+
- -
- -
- -
- -
-
- -
-
+ ); }