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

View File

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

View File

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