Refactor: 컴포넌트 이름 변경

This commit is contained in:
홍창기 2024-09-22 12:58:44 +09:00
parent 57e83781b8
commit 20a9574794
No known key found for this signature in database
GPG Key ID: 9FF142041B4A91B9
3 changed files with 7 additions and 7 deletions

View File

@ -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);

View File

@ -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);

View File

@ -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 />,
}, },
]); ]);