Refactor: 컴포넌트 이름 변경
This commit is contained in:
parent
57e83781b8
commit
20a9574794
@ -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);
|
||||
|
@ -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);
|
||||
|
@ -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: <FolderUploadTest />,
|
||||
path: `${webPath.imageFolderUploadTest()}/:projectId`,
|
||||
element: <ImageFolderUploadTest />,
|
||||
},
|
||||
]);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user