This commit is contained in:
hanif salafi 2025-05-26 08:54:48 +07:00
commit d29e2018e2
2 changed files with 3 additions and 5 deletions

View File

@ -6,11 +6,11 @@ import {
DrawerBody, DrawerBody,
DrawerContent, DrawerContent,
DrawerHeader, DrawerHeader,
Image,
useDisclosure, useDisclosure,
} from "@heroui/react"; } from "@heroui/react";
import { ChevronDownIcon, LandingAnalyticIcon, UserIcon } from "../icons"; import { ChevronDownIcon, LandingAnalyticIcon, UserIcon } from "../icons";
import { MasterUsersIcon } from "../icons/sidebar-icon"; import { MasterUsersIcon } from "../icons/sidebar-icon";
import Image from "next/image";
import { useEffect, useState } from "react"; import { useEffect, useState } from "react";
import { getActivity } from "@/services/activity-log"; import { getActivity } from "@/services/activity-log";
@ -104,8 +104,6 @@ export default function AnalyticDrawer() {
</div> </div>
<Image <Image
src="/tribrata.png" src="/tribrata.png"
width={360}
height={360}
alt="logo" alt="logo"
className="w-[80px] opacity-30" className="w-[80px] opacity-30"
/> />
@ -128,8 +126,6 @@ export default function AnalyticDrawer() {
</div> </div>
<Image <Image
src="/tribrata.png" src="/tribrata.png"
width={360}
height={360}
alt="logo" alt="logo"
className="w-[80px] opacity-30" className="w-[80px] opacity-30"
/> />

View File

@ -108,6 +108,7 @@ export default function DashboardContainer() {
limit: "4", limit: "4",
page: page, page: page,
search: "", search: "",
sort: "desc",
}; };
const res = await getListArticleAdminPage(req); const res = await getListArticleAdminPage(req);
setArticle(res.data?.data); setArticle(res.data?.data);
@ -128,6 +129,7 @@ export default function DashboardContainer() {
limit: "10", limit: "10",
page: topPagespage, page: topPagespage,
search: "", search: "",
sort: "desc",
}; };
const res = await getTopArticles(req); const res = await getTopArticles(req);
setTopPages(getTableNumber(10, res.data?.data)); setTopPages(getTableNumber(10, res.data?.data));