Update frontend/src/components/Modals/ManageWorkspace/Documents/Directory/FolderRow/index.jsx
Browse files
frontend/src/components/Modals/ManageWorkspace/Documents/Directory/FolderRow/index.jsx
CHANGED
|
@@ -1,6 +1,7 @@
|
|
| 1 |
import { useState } from "react";
|
| 2 |
import FileRow from "../FileRow";
|
| 3 |
-
|
|
|
|
| 4 |
import { middleTruncate } from "@/utils/directories";
|
| 5 |
|
| 6 |
export default function FolderRow({
|
|
@@ -53,7 +54,8 @@ export default function FolderRow({
|
|
| 53 |
>
|
| 54 |
<CaretDown className="text-base font-bold w-4 h-4" />
|
| 55 |
</div>
|
| 56 |
-
<
|
|
|
|
| 57 |
className="shrink-0 text-base font-bold w-4 h-4 mr-[3px]"
|
| 58 |
weight="fill"
|
| 59 |
/>
|
|
|
|
| 1 |
import { useState } from "react";
|
| 2 |
import FileRow from "../FileRow";
|
| 3 |
+
// 修正 #1:导入 'Folder'
|
| 4 |
+
import { CaretDown, Folder } from "@phosphor-icons/react";
|
| 5 |
import { middleTruncate } from "@/utils/directories";
|
| 6 |
|
| 7 |
export default function FolderRow({
|
|
|
|
| 54 |
>
|
| 55 |
<CaretDown className="text-base font-bold w-4 h-4" />
|
| 56 |
</div>
|
| 57 |
+
{/* 修正 #2:使用 '<Folder />' 组件 */}
|
| 58 |
+
<Folder
|
| 59 |
className="shrink-0 text-base font-bold w-4 h-4 mr-[3px]"
|
| 60 |
weight="fill"
|
| 61 |
/>
|