fix:run build
This commit is contained in:
parent
35cdd51b6c
commit
3c5ce29060
|
|
@ -1,6 +1,6 @@
|
|||
import { HumasLayout } from "@/components/layout/humas-layout";
|
||||
import DetailPage from "@/components/main/detail/new-detail";
|
||||
import { getArticleById, getArticleByIdHumas } from "@/services/article";
|
||||
import { getArticleById } from "@/services/article";
|
||||
import { Metadata } from "next";
|
||||
|
||||
type Props = {
|
||||
|
|
|
|||
|
|
@ -22,7 +22,7 @@ import {
|
|||
import ReactSelect from "react-select";
|
||||
import makeAnimated from "react-select/animated";
|
||||
import { Checkbox, Chip } from "@heroui/react";
|
||||
import { htmlToString } from "@/utils/global";
|
||||
import { getUnixTimestamp, htmlToString } from "@/utils/global";
|
||||
import { close, error, loading } from "@/config/swal";
|
||||
import { useRouter } from "next/navigation";
|
||||
import Link from "next/link";
|
||||
|
|
@ -100,7 +100,7 @@ export default function NewCreateMagazineForm() {
|
|||
}, []);
|
||||
|
||||
const fetchCategory = async () => {
|
||||
const res = await getArticleByCategory();
|
||||
const res = await getArticleByCategory(getUnixTimestamp());
|
||||
if (res?.data?.data) {
|
||||
setupCategory(res?.data?.data);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -41,14 +41,6 @@ export default function FooterNew(props: { margin?: boolean }) {
|
|||
|
||||
success("Sukses");
|
||||
};
|
||||
const [hasMounted, setHasMounted] = useState(false);
|
||||
|
||||
useEffect(() => {
|
||||
setHasMounted(true);
|
||||
}, []);
|
||||
|
||||
// Render
|
||||
if (!hasMounted) return null;
|
||||
|
||||
const [hasMounted, setHasMounted] = useState(false);
|
||||
|
||||
|
|
|
|||
|
|
@ -70,4 +70,5 @@ export type PaginationRequest = {
|
|||
categoryIds?: string;
|
||||
createdByIds?: string;
|
||||
isPolda?: boolean;
|
||||
timeStamp?: number;
|
||||
};
|
||||
|
|
|
|||
Loading…
Reference in New Issue