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