fix server
continuous-integration/drone/push Build encountered an error Details

This commit is contained in:
Anang Yusman 2026-03-10 14:18:34 +08:00
parent cae4bdcf74
commit f2b4c27f2f
1 changed files with 2 additions and 3 deletions

View File

@ -6,7 +6,6 @@ import { Calendar, Eye, MessageSquare } from "lucide-react";
import { getListArticle } from "@/service/article";
import Link from "next/link";
// Definisi type Article
type Article = {
id: number;
title: string;
@ -31,7 +30,7 @@ export default function BreakingNews() {
const [articles, setArticles] = useState<Article[]>([]);
const [loading, setLoading] = useState(true);
const [page, setPage] = useState(1);
const [limit] = useState("8"); // jumlah per halaman
const [limit] = useState("8");
const [meta, setMeta] = useState<PaginationMeta | null>(null);
useEffect(() => {
@ -158,7 +157,7 @@ export default function BreakingNews() {
{p}
</button>
</li>
)
),
)}
{/* Tombol Next */}