diff --git a/frontend/src/components/ImageFolderUploadModal/index.tsx b/frontend/src/components/ImageFolderUploadModal/index.tsx index 96f737c..2a98405 100644 --- a/frontend/src/components/ImageFolderUploadModal/index.tsx +++ b/frontend/src/components/ImageFolderUploadModal/index.tsx @@ -3,7 +3,7 @@ import { Dialog, DialogContent, DialogHeader, DialogTrigger } from '../ui/dialog import { Plus } from 'lucide-react'; import ImageFolderUploadForm from './ImageFolderUploadForm'; -export default function WorkSpaceCreateModal({ projectId, parentId = 0 }: { projectId: number; parentId: number }) { +export default function ImageFolderUploadModal({ projectId, parentId = 0 }: { projectId: number; parentId: number }) { const [isOpen, setIsOpen] = React.useState(false); const handleOpen = () => setIsOpen(true); diff --git a/frontend/src/components/FolderUploadTest/index.tsx b/frontend/src/pages/ImageFolderUploadTest.tsx similarity index 72% rename from frontend/src/components/FolderUploadTest/index.tsx rename to frontend/src/pages/ImageFolderUploadTest.tsx index 01bf4ff..21f4c6d 100644 --- a/frontend/src/components/FolderUploadTest/index.tsx +++ b/frontend/src/pages/ImageFolderUploadTest.tsx @@ -1,7 +1,7 @@ +import ImageFolderUploadModal from '@/components/ImageFolderUploadModal'; import { useParams } from 'react-router-dom'; -import ImageFolderUploadModal from '../ImageFolderUploadModal'; -export default function FolderUploadTest() { +export default function ImageFolderUploadTest() { const params = useParams<{ workspaceId: string; projectId: string }>(); const projectId = Number(params.projectId); diff --git a/frontend/src/router/index.tsx b/frontend/src/router/index.tsx index 8c10489..dbf88a0 100644 --- a/frontend/src/router/index.tsx +++ b/frontend/src/router/index.tsx @@ -14,7 +14,7 @@ import WorkspaceBrowseIndex from '@/pages/WorkspaceBrowseIndex'; import AdminIndex from '@/pages/AdminIndex'; import LabelCanvas from '@/pages/LabelCanvas'; import ReviewDetail from '@/components/ReviewDetail'; -import FolderUploadTest from '@/components/FolderUploadTest'; +import ImageFolderUploadTest from '@/pages/ImageFolderUploadTest'; export const webPath = { home: () => '/', @@ -22,7 +22,7 @@ export const webPath = { workspace: () => '/workspace', admin: () => `/admin`, oauthCallback: () => '/redirect/oauth2', - folderUploadTest: () => '/folderuploadtest', + imageFolderUploadTest: () => '/imagefolderuploadtest', }; const router = createBrowserRouter([ @@ -109,8 +109,8 @@ const router = createBrowserRouter([ ), }, { - path: `${webPath.folderUploadTest()}/:projectId`, - element: , + path: `${webPath.imageFolderUploadTest()}/:projectId`, + element: , }, ]);