-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
86 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
29 changes: 29 additions & 0 deletions
29
src/features/collection/components/collection-info-dropdown-menu.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
import Icon from '@/shared/components/custom/icon' | ||
import { | ||
DropdownMenu, | ||
DropdownMenuContent, | ||
DropdownMenuItem, | ||
DropdownMenuTrigger, | ||
} from '@/shared/components/ui/dropdown-menu' | ||
import Text from '@/shared/components/ui/text' | ||
|
||
interface Props { | ||
collectionId: number | ||
} | ||
|
||
const CollectionInfoDropdownMenu = ({ collectionId }: Props) => { | ||
return ( | ||
<DropdownMenu> | ||
<DropdownMenuTrigger> | ||
<Icon name="menu-dots" className="size-[24px]" /> | ||
</DropdownMenuTrigger> | ||
<DropdownMenuContent className="min-w-[240px] bg-white p-0 *:cursor-pointer"> | ||
<DropdownMenuItem className="flex justify-between px-5 py-4 hover:bg-gray-100"> | ||
<Text typography="subtitle2-medium">컬렉션 신고</Text> | ||
</DropdownMenuItem> | ||
</DropdownMenuContent> | ||
</DropdownMenu> | ||
) | ||
} | ||
|
||
export default CollectionInfoDropdownMenu |
38 changes: 38 additions & 0 deletions
38
src/features/collection/components/my-collection-info-dropdown-menu.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
import Icon from '@/shared/components/custom/icon' | ||
import { | ||
DropdownMenu, | ||
DropdownMenuContent, | ||
DropdownMenuItem, | ||
DropdownMenuTrigger, | ||
} from '@/shared/components/ui/dropdown-menu' | ||
import Text from '@/shared/components/ui/text' | ||
|
||
interface Props { | ||
collectionId: number | ||
} | ||
|
||
const MyCollectionInfoDropdownMenu = ({ collectionId }: Props) => { | ||
return ( | ||
<DropdownMenu> | ||
<DropdownMenuTrigger> | ||
<Icon name="menu-dots" className="size-[24px]" /> | ||
</DropdownMenuTrigger> | ||
<DropdownMenuContent className="min-w-[240px] bg-white p-0 *:cursor-pointer"> | ||
<DropdownMenuItem className="flex justify-between px-5 py-4 hover:bg-gray-100"> | ||
<Text typography="subtitle2-medium">컬렉션 정보 수정</Text> | ||
<Icon name="write-line" className="size-[20px]" /> | ||
</DropdownMenuItem> | ||
<DropdownMenuItem className="flex justify-between px-5 py-4 hover:bg-gray-100"> | ||
<Text typography="subtitle2-medium">문제 편집</Text> | ||
<Icon name="write-line" className="size-[20px]" /> | ||
</DropdownMenuItem> | ||
<DropdownMenuItem className="flex justify-between px-5 py-4 text-text-critical hover:bg-gray-100"> | ||
<Text typography="subtitle2-medium">컬렉션 삭제</Text> | ||
<Icon name="bin" className="size-[20px]" /> | ||
</DropdownMenuItem> | ||
</DropdownMenuContent> | ||
</DropdownMenu> | ||
) | ||
} | ||
|
||
export default MyCollectionInfoDropdownMenu |