Feat: 워크스페이스에 드롭다운 메뉴 추가

This commit is contained in:
홍창기 2024-09-23 18:49:31 +09:00
parent eef7325b7c
commit 06681218a6
2 changed files with 5 additions and 13 deletions

View File

@ -28,7 +28,7 @@ export default function WorkspaceDropdownMenu({ projectId, folderId }: { project
<>
<DropdownMenu>
<DropdownMenuTrigger>
<Menu size={16} />
<Menu size={20} />
</DropdownMenuTrigger>
<DropdownMenuContent className="w-56">
<DropdownMenuItem

View File

@ -23,18 +23,10 @@ export default function ProjectStructure({ project }: { project: Project }) {
<div className="flex w-full items-center gap-1 overflow-hidden pr-1">
<h3 className="caption overflow-hidden text-ellipsis whitespace-nowrap">{project.type}</h3>
</div>
<button
className="flex gap-1"
onClick={() => console.log('edit project')}
>
<SquarePenIcon size={16} />
</button>
<button
className="flex gap-1"
onClick={() => console.log('upload image')}
>
<Upload size={16} />
</button>
<WorkspaceDropdownMenu
projectId={project.id}
folderId={0}
/>
</header>
{folderData.children.length === 0 && folderData.images.length === 0 ? (
<div className="body-small flex h-full select-none items-center justify-center text-gray-400">