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

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