diff --git a/components/form/content/audio-form.tsx b/components/form/content/audio-form.tsx index 0d9edd39..f1a246fe 100644 --- a/components/form/content/audio-form.tsx +++ b/components/form/content/audio-form.tsx @@ -228,6 +228,11 @@ export default function FormAudio() { setIsLoading(false); } } else { + Swal.fire({ + icon: "warning", + title: "WARNING", + text: "Please provide a valid main keyword.", + }); console.error("Please provide a valid main keyword."); } }; @@ -255,6 +260,11 @@ export default function FormAudio() { setIsLoading(false); } } else { + Swal.fire({ + icon: "warning", + title: "WARNING", + text: "Please provide a valid title.", + }); console.error("Please provide a valid main keyword."); } }; @@ -282,6 +292,11 @@ export default function FormAudio() { setIsLoading(false); } } else { + Swal.fire({ + icon: "warning", + title: "WARNING", + text: "Please provide a valid keyword.", + }); console.error("Please provide a valid main keyword."); } }; diff --git a/components/form/content/image-form.tsx b/components/form/content/image-form.tsx index 9b1e17d3..2d175c12 100644 --- a/components/form/content/image-form.tsx +++ b/components/form/content/image-form.tsx @@ -231,6 +231,11 @@ export default function FormImage() { setIsLoading(false); } } else { + Swal.fire({ + icon: "warning", + title: "WARNING", + text: "Please provide a valid main keyword.", + }); console.error("Please provide a valid main keyword."); } }; @@ -258,6 +263,11 @@ export default function FormImage() { setIsLoading(false); } } else { + Swal.fire({ + icon: "warning", + title: "WARNING", + text: "Please provide a valid title.", + }); console.error("Please provide a valid main keyword."); } }; @@ -285,6 +295,11 @@ export default function FormImage() { setIsLoading(false); } } else { + Swal.fire({ + icon: "warning", + title: "WARNING", + text: "Please provide a valid keyword.", + }); console.error("Please provide a valid main keyword."); } }; diff --git a/components/form/content/teks-form.tsx b/components/form/content/teks-form.tsx index 7353d0bf..76268ca2 100644 --- a/components/form/content/teks-form.tsx +++ b/components/form/content/teks-form.tsx @@ -227,6 +227,11 @@ export default function FormTeks() { setIsLoading(false); } } else { + Swal.fire({ + icon: "warning", + title: "WARNING", + text: "Please provide a valid main keyword.", + }); console.error("Please provide a valid main keyword."); } }; @@ -254,6 +259,11 @@ export default function FormTeks() { setIsLoading(false); } } else { + Swal.fire({ + icon: "warning", + title: "WARNING", + text: "Please provide a valid title.", + }); console.error("Please provide a valid main keyword."); } }; @@ -281,6 +291,11 @@ export default function FormTeks() { setIsLoading(false); } } else { + Swal.fire({ + icon: "warning", + title: "WARNING", + text: "Please provide a valid keyword.", + }); console.error("Please provide a valid main keyword."); } }; diff --git a/components/form/content/video-form.tsx b/components/form/content/video-form.tsx index 034b378c..16868538 100644 --- a/components/form/content/video-form.tsx +++ b/components/form/content/video-form.tsx @@ -228,6 +228,11 @@ export default function FormVideo() { setIsLoading(false); } } else { + Swal.fire({ + icon: "warning", + title: "WARNING", + text: "Please provide a valid main keyword.", + }); console.error("Please provide a valid main keyword."); } }; @@ -255,6 +260,11 @@ export default function FormVideo() { setIsLoading(false); } } else { + Swal.fire({ + icon: "warning", + title: "WARNING", + text: "Please provide a valid title.", + }); console.error("Please provide a valid main keyword."); } }; @@ -282,6 +292,11 @@ export default function FormVideo() { setIsLoading(false); } } else { + Swal.fire({ + icon: "warning", + title: "WARNING", + text: "Please provide a valid keyword.", + }); console.error("Please provide a valid main keyword."); } }; diff --git a/service/landing/landing.ts b/service/landing/landing.ts index 62ce0f9f..98a01328 100644 --- a/service/landing/landing.ts +++ b/service/landing/landing.ts @@ -63,7 +63,7 @@ export async function getPublicCategoryData( page: number = 1 ) { return await httpGetInterceptor( - `media/categories/list/publish?enablePage=1&size=12&sort=desc&sortBy=createdAt&page=${ + `media/categories/list/publish?enablePage=1&size=12&sort=desc&sortBy=id&page=${ page - 1 }&group=${group}&type=${type}&isInt=${isInt}` );