Feat: 워크스페이스에 드롭다운 메뉴 추가
This commit is contained in:
parent
eef7325b7c
commit
06681218a6
@ -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
|
||||
|
@ -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">
|
||||
|
Loading…
Reference in New Issue
Block a user