+
+
-
-
{folder.name}
-
+
+
{folder.name}
+
{t("folderInfo", {
id: folder.id,
name: folder.name,
@@ -51,7 +51,7 @@ const FolderCard = ({ folder, refresh }: FolderProps) => {
-
+
{
e.stopPropagation();
@@ -69,7 +69,7 @@ const FolderCard = ({ folder, refresh }: FolderProps) => {
}
}}
>
-
+
{
@@ -89,9 +89,9 @@ const FolderCard = ({ folder, refresh }: FolderProps) => {
}}
className="text-gray-400 hover:text-red-500 hover:bg-red-50"
>
-
+
-
+
);
@@ -156,7 +156,7 @@ export function FoldersClient({ userId }: { userId: string; }) {
disabled={loading}
className="w-full border-dashed"
>
-
+
{loading ? t("creating") : t("newFolder")}
@@ -167,23 +167,21 @@ export function FoldersClient({ userId }: { userId: string; }) {
// 空状态
) : (
// 文件夹卡片列表
-
- {folders
- .toSorted((a, b) => a.id - b.id)
- .map((folder) => (
-
- ))}
-
+ folders
+ .toSorted((a, b) => a.id - b.id)
+ .map((folder) => (
+
+ ))
)}
diff --git a/src/components/ui/CardList.tsx b/src/components/ui/CardList.tsx
index 94b0e04..15b770f 100644
--- a/src/components/ui/CardList.tsx
+++ b/src/components/ui/CardList.tsx
@@ -13,7 +13,7 @@ interface CardListProps {
export function CardList({ children, className = "" }: CardListProps) {
return (