Merge branch 'dev-restructure' of https://gitlab.com/hanifsalafi/web-humas-polri into prod
This commit is contained in:
commit
e75b00d25b
|
|
@ -61,7 +61,7 @@ import {
|
||||||
parseAbsoluteToLocal,
|
parseAbsoluteToLocal,
|
||||||
} from "@internationalized/date";
|
} from "@internationalized/date";
|
||||||
import { Input } from "@heroui/input";
|
import { Input } from "@heroui/input";
|
||||||
import { EyeIconMdi } from "@/components/icons";
|
import { EyeIconMdi, SearchIcons } from "@/components/icons";
|
||||||
|
|
||||||
type ArticleData = Article & {
|
type ArticleData = Article & {
|
||||||
no: number;
|
no: number;
|
||||||
|
|
@ -197,7 +197,7 @@ export default function DashboardContainer() {
|
||||||
|
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
fetchPostCount();
|
fetchPostCount();
|
||||||
}, [postContentDate, selectedCategory]);
|
}, [selectedCategory]);
|
||||||
|
|
||||||
async function fetchPostCount() {
|
async function fetchPostCount() {
|
||||||
const getDate = (data: any) => {
|
const getDate = (data: any) => {
|
||||||
|
|
@ -425,6 +425,7 @@ export default function DashboardContainer() {
|
||||||
</p>
|
</p>
|
||||||
<DateRangePicker
|
<DateRangePicker
|
||||||
hideTimeZone
|
hideTimeZone
|
||||||
|
selectorButtonPlacement="start"
|
||||||
value={postContentDate}
|
value={postContentDate}
|
||||||
onChange={(e) => {
|
onChange={(e) => {
|
||||||
e && setPostContentDate(e);
|
e && setPostContentDate(e);
|
||||||
|
|
@ -440,6 +441,14 @@ export default function DashboardContainer() {
|
||||||
}}
|
}}
|
||||||
size="sm"
|
size="sm"
|
||||||
variant="bordered"
|
variant="bordered"
|
||||||
|
endContent={
|
||||||
|
<a
|
||||||
|
className="cursor-pointer hover:text-black"
|
||||||
|
onClick={() => fetchPostCount()}
|
||||||
|
>
|
||||||
|
<SearchIcons />
|
||||||
|
</a>
|
||||||
|
}
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
<div className="flex flex-row border-b-1 gap-1 py-1 items-center">
|
<div className="flex flex-row border-b-1 gap-1 py-1 items-center">
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue