From ab16706f89be2d50da95fcab00bf23c80906b429 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EC=A0=95=ED=98=84=EC=A1=B0?= Date: Mon, 9 Sep 2024 17:29:37 +0900 Subject: [PATCH] =?UTF-8?q?Refactor:=20=ED=95=84=EC=9A=94=EC=97=86?= =?UTF-8?q?=EB=8A=94=20=EB=A9=A4=EB=B2=84=EA=B4=80=EB=A6=AC=20=EC=A0=9C?= =?UTF-8?q?=EA=B1=B0,=20=EC=9D=B4=EC=9C=A0=EB=8A=94=20=EB=A9=A4=EB=B2=84?= =?UTF-8?q?=EA=B4=80=EB=A6=AC=EA=B0=80=20=ED=94=84=EB=A1=9C=EC=A0=9D?= =?UTF-8?q?=ED=8A=B8=20=EB=8B=A8=EC=9C=84=EB=B3=84=EB=A1=9C=20=EC=9D=B4?= =?UTF-8?q?=EB=A3=A8=EC=96=B4=EC=A7=80=EA=B8=B0=20=EB=95=8C=EB=AC=B8?= =?UTF-8?q?=EC=97=90=20=EC=9B=8C=ED=81=AC=20=EC=8A=A4=ED=8E=98=EC=9D=B4?= =?UTF-8?q?=EC=8A=A4=EC=97=90=EC=84=9C=20=ED=95=84=EC=9A=94=EC=97=86?= =?UTF-8?q?=EC=9D=8C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../WorkspaceBrowseDetail/index.tsx | 78 ++----------------- 1 file changed, 6 insertions(+), 72 deletions(-) diff --git a/frontend/src/components/WorkspaceBrowseDetail/index.tsx b/frontend/src/components/WorkspaceBrowseDetail/index.tsx index 51d45eb..206b56f 100644 --- a/frontend/src/components/WorkspaceBrowseDetail/index.tsx +++ b/frontend/src/components/WorkspaceBrowseDetail/index.tsx @@ -2,17 +2,9 @@ import { useParams } from 'react-router-dom'; import ProjectCard from '@/components/ProjectCard'; import { Button } from '@/components/ui/button'; import { Workspace } from '@/types'; -import { Plus, Smile, Users } from 'lucide-react'; +import { Plus, Smile } from 'lucide-react'; import { Dialog, DialogContent, DialogHeader, DialogTrigger } from '../ui/dialogCustom'; import WorkSpaceCreateForm from '../WorkSpaceCreateModal/WorkSpaceCreateForm'; -import MemberManageForm from '../MemberManageModal/MemberManageForm'; - -type Role = 'admin' | 'editor' | 'viewer'; - -interface Member { - email: string; - role: Role; -} export default function WorkspaceBrowseDetail() { const { workspaceId } = useParams<{ workspaceId: string }>(); @@ -27,78 +19,20 @@ export default function WorkspaceBrowseDetail() { id: numericWorkspaceId, name: `workspace-${workspaceId}`, projects: [ - { - id: 1, - name: 'project1', - type: 'Detection', - children: [], - }, - { - id: 2, - name: 'project2', - type: 'Detection', - children: [], - }, - { - id: 3, - name: 'project3', - type: 'Detection', - children: [], - }, - { - id: 4, - name: 'project4', - type: 'Detection', - children: [], - }, - { - id: 5, - name: 'project5', - type: 'Detection', - children: [], - }, + { id: 1, name: 'project1', type: 'Detection', children: [] }, + { id: 2, name: 'project2', type: 'Detection', children: [] }, + { id: 3, name: 'project3', type: 'Detection', children: [] }, + { id: 4, name: 'project4', type: 'Detection', children: [] }, + { id: 5, name: 'project5', type: 'Detection', children: [] }, ], }; - const members: Array = [ - { email: 'admin1@example.com', role: 'admin' }, - { email: 'admin2@example.com', role: 'admin' }, - { email: 'viewer3@example.com', role: 'viewer' }, - { email: 'editor1@example.com', role: 'editor' }, - { email: 'editor2@example.com', role: 'editor' }, - { email: 'editor3@example.com', role: 'editor' }, - { email: 'editor4@example.com', role: 'editor' }, - ]; - return (

{workspaceId ? workspace.name : ''}

- {workspaceId ? ( - - - - - - - { - console.log(data); - }} - members={members} - /> - - - ) : ( - <> - )}