diff --git a/app/detail/slug/[slug]/page.tsx b/app/detail/slug/[slug]/page.tsx deleted file mode 100644 index 69af48a..0000000 --- a/app/detail/slug/[slug]/page.tsx +++ /dev/null @@ -1,31 +0,0 @@ -import DetailContent from "@/components/details/details-content"; -import Navbar from "@/components/landing-page/navbar"; - -import Image from "next/image"; -import { Footer } from "react-day-picker"; - -export default function Slug() { - return ( -
-
- Background -
- -
- -
- -
- -
-
- ); -} diff --git a/components/details/details-content.tsx b/components/details/details-content.tsx index 724f846..1c6ee5d 100644 --- a/components/details/details-content.tsx +++ b/components/details/details-content.tsx @@ -299,7 +299,7 @@ export default function DetailContent() { async function initStateData() { loading(); - const res = await getArticleBySlug(slug); + const res = await getArticleById(id); const data = res?.data?.data; setThumbnail(data?.thumbnailUrl); diff --git a/components/landing-page/header.tsx b/components/landing-page/header.tsx index 83c1262..e0bcae6 100644 --- a/components/landing-page/header.tsx +++ b/components/landing-page/header.tsx @@ -118,7 +118,7 @@ export default function HeroNewsSection() {
{articles.length > 0 && (
- + {articles.slice(1, 5).map((article, index) => (
- +