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 { Plus } from 'lucide-react';
|
||||||
import ImageFolderUploadForm from './ImageFolderUploadForm';
|
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 [isOpen, setIsOpen] = React.useState(false);
|
||||||
|
|
||||||
const handleOpen = () => setIsOpen(true);
|
const handleOpen = () => setIsOpen(true);
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
|
import ImageFolderUploadModal from '@/components/ImageFolderUploadModal';
|
||||||
import { useParams } from 'react-router-dom';
|
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 params = useParams<{ workspaceId: string; projectId: string }>();
|
||||||
const projectId = Number(params.projectId);
|
const projectId = Number(params.projectId);
|
||||||
|
|
@ -14,7 +14,7 @@ import WorkspaceBrowseIndex from '@/pages/WorkspaceBrowseIndex';
|
|||||||
import AdminIndex from '@/pages/AdminIndex';
|
import AdminIndex from '@/pages/AdminIndex';
|
||||||
import LabelCanvas from '@/pages/LabelCanvas';
|
import LabelCanvas from '@/pages/LabelCanvas';
|
||||||
import ReviewDetail from '@/components/ReviewDetail';
|
import ReviewDetail from '@/components/ReviewDetail';
|
||||||
import FolderUploadTest from '@/components/FolderUploadTest';
|
import ImageFolderUploadTest from '@/pages/ImageFolderUploadTest';
|
||||||
|
|
||||||
export const webPath = {
|
export const webPath = {
|
||||||
home: () => '/',
|
home: () => '/',
|
||||||
@ -22,7 +22,7 @@ export const webPath = {
|
|||||||
workspace: () => '/workspace',
|
workspace: () => '/workspace',
|
||||||
admin: () => `/admin`,
|
admin: () => `/admin`,
|
||||||
oauthCallback: () => '/redirect/oauth2',
|
oauthCallback: () => '/redirect/oauth2',
|
||||||
folderUploadTest: () => '/folderuploadtest',
|
imageFolderUploadTest: () => '/imagefolderuploadtest',
|
||||||
};
|
};
|
||||||
|
|
||||||
const router = createBrowserRouter([
|
const router = createBrowserRouter([
|
||||||
@ -109,8 +109,8 @@ const router = createBrowserRouter([
|
|||||||
),
|
),
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
path: `${webPath.folderUploadTest()}/:projectId`,
|
path: `${webPath.imageFolderUploadTest()}/:projectId`,
|
||||||
element: <FolderUploadTest />,
|
element: <ImageFolderUploadTest />,
|
||||||
},
|
},
|
||||||
]);
|
]);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user