diff --git a/src/app/(features)/explore/ExploreClient.tsx b/src/app/(features)/explore/ExploreClient.tsx index 5bbef97..9e78499 100644 --- a/src/app/(features)/explore/ExploreClient.tsx +++ b/src/app/(features)/explore/ExploreClient.tsx @@ -1,7 +1,6 @@ "use client"; import { - ChevronRight, Folder as Fd, Heart, Search, @@ -13,7 +12,6 @@ import { useTranslations } from "next-intl"; import { toast } from "sonner"; import { PageLayout } from "@/components/ui/PageLayout"; import { PageHeader } from "@/components/ui/PageHeader"; -import { CardList } from "@/components/ui/CardList"; import { actionSearchPublicFolders, actionToggleFavorite, @@ -63,36 +61,15 @@ const PublicFolderCard = ({ folder, currentUserId, onFavoriteChange }: PublicFol return (
{ router.push(`/explore/${folder.id}`); }} > -
-
- +
+
+
- -
- - {favoriteCount} -
- -
-

{folder.name}

-

- {t("folderInfo", { - userName: folder.userName ?? folder.userUsername ?? t("unknownUser"), - totalPairs: folder.totalPairs, - })} -

-
-
- -
- +
+ +

{folder.name}

+ +

+ {t("folderInfo", { + userName: folder.userName ?? folder.userUsername ?? t("unknownUser"), + totalPairs: folder.totalPairs, + })} +

+ +
+ + {favoriteCount}
); @@ -148,7 +141,7 @@ export function ExploreClient({ initialPublicFolders }: ExploreClientProps) { -
+
-
- - {loading ? ( -
-
-

{t("loading")}

-
- ) : publicFolders.length === 0 ? ( -
-
- -
-

{t("noFolders")}

-
- ) : ( - publicFolders.map((folder) => ( - - )) - )} -
-
+ {loading ? ( +
+
+

{t("loading")}

+
+ ) : publicFolders.length === 0 ? ( +
+
+ +
+

{t("noFolders")}

+
+ ) : ( +
+ {publicFolders.map((folder) => ( + + ))} +
+ )} ); }