Merge branch 'dev-restructure' of https://gitlab.com/hanifsalafi/web-humas-polri into prod

This commit is contained in:
Rama Priyanto 2025-06-18 11:52:04 +07:00
commit e75b00d25b
1 changed files with 11 additions and 2 deletions

View File

@ -61,7 +61,7 @@ import {
parseAbsoluteToLocal,
} from "@internationalized/date";
import { Input } from "@heroui/input";
import { EyeIconMdi } from "@/components/icons";
import { EyeIconMdi, SearchIcons } from "@/components/icons";
type ArticleData = Article & {
no: number;
@ -197,7 +197,7 @@ export default function DashboardContainer() {
useEffect(() => {
fetchPostCount();
}, [postContentDate, selectedCategory]);
}, [selectedCategory]);
async function fetchPostCount() {
const getDate = (data: any) => {
@ -425,6 +425,7 @@ export default function DashboardContainer() {
</p>
<DateRangePicker
hideTimeZone
selectorButtonPlacement="start"
value={postContentDate}
onChange={(e) => {
e && setPostContentDate(e);
@ -440,6 +441,14 @@ export default function DashboardContainer() {
}}
size="sm"
variant="bordered"
endContent={
<a
className="cursor-pointer hover:text-black"
onClick={() => fetchPostCount()}
>
<SearchIcons />
</a>
}
/>
</div>
<div className="flex flex-row border-b-1 gap-1 py-1 items-center">