diff --git a/app/[locale]/(public)/image/filter/page.tsx b/app/[locale]/(public)/image/filter/page.tsx index 03cf5000..bf4ee07e 100644 --- a/app/[locale]/(public)/image/filter/page.tsx +++ b/app/[locale]/(public)/image/filter/page.tsx @@ -188,7 +188,8 @@ const FilterPage = () => { startDateString, endDateString, monthYearFilter ? getOnlyMonthAndYear(monthYearFilter)?.split("/")[0]?.replace("", "") : "", - monthYearFilter ? getOnlyMonthAndYear(monthYearFilter)?.split("/")[1] : "" + monthYearFilter ? getOnlyMonthAndYear(monthYearFilter)?.split("/")[1] : "", + locale == "en" ? true : false, ); close(); // setGetTotalPage(response?.data?.data?.totalPages); @@ -472,57 +473,59 @@ const FilterPage = () => { {/* Konten Kanan */} - -
-
-

{t("sortBy")}

- -
- - {imageData?.length > 0 ? ( -
- {imageData?.map((image: any) => ( - - - - {/* */} -
- -
-
- {formatDateToIndonesian(new Date(image?.createdAt))} {image?.timezone ? image?.timezone : "WIB"}| - {image?.clickCount}{" "} - - - {" "} -
-
{image?.title}
- -
-
- ))} +
+ +
+
+

{t("sortBy")}

+
- ) : ( -

- empty -

- )} - -
-
+ {imageData?.length > 0 ? ( +
+ {imageData?.map((image: any) => ( + + + + {/* */} +
+ +
+
+ {formatDateToIndonesian(new Date(image?.createdAt))} {image?.timezone ? image?.timezone : "WIB"}| + {image?.clickCount}{" "} + + + {" "} +
+
{image?.title}
+ +
+
+ ))} +
+ ) : ( +

+ empty +

+ )} + + {totalData > 1 && } +
+ +
);