mirror of
https://github.com/lukevella/rallly.git
synced 2025-05-05 21:26:05 +02:00
✨ Show participant email in dropdown (#855)
This commit is contained in:
parent
8ea8ae18b2
commit
b79b0bf3d7
1 changed files with 14 additions and 0 deletions
|
@ -14,6 +14,8 @@ import {
|
||||||
DropdownMenuContent,
|
DropdownMenuContent,
|
||||||
DropdownMenuItem,
|
DropdownMenuItem,
|
||||||
DropdownMenuItemIconLabel,
|
DropdownMenuItemIconLabel,
|
||||||
|
DropdownMenuLabel,
|
||||||
|
DropdownMenuSeparator,
|
||||||
DropdownMenuTrigger,
|
DropdownMenuTrigger,
|
||||||
} from "@rallly/ui/dropdown-menu";
|
} from "@rallly/ui/dropdown-menu";
|
||||||
import {
|
import {
|
||||||
|
@ -67,6 +69,17 @@ export const ParticipantDropdown = ({
|
||||||
{children}
|
{children}
|
||||||
</DropdownMenuTrigger>
|
</DropdownMenuTrigger>
|
||||||
<DropdownMenuContent align={align}>
|
<DropdownMenuContent align={align}>
|
||||||
|
<DropdownMenuLabel>
|
||||||
|
<div className="grid gap-0.5">
|
||||||
|
<div>{participant.name}</div>
|
||||||
|
{participant.email ? (
|
||||||
|
<div className="text-muted-foreground text-xs font-normal">
|
||||||
|
{participant.email}
|
||||||
|
</div>
|
||||||
|
) : null}
|
||||||
|
</div>
|
||||||
|
</DropdownMenuLabel>
|
||||||
|
<DropdownMenuSeparator />
|
||||||
<DropdownMenuItem onClick={onEdit}>
|
<DropdownMenuItem onClick={onEdit}>
|
||||||
<DropdownMenuItemIconLabel icon={PencilIcon}>
|
<DropdownMenuItemIconLabel icon={PencilIcon}>
|
||||||
<Trans i18nKey="editVotes" />
|
<Trans i18nKey="editVotes" />
|
||||||
|
@ -78,6 +91,7 @@ export const ParticipantDropdown = ({
|
||||||
</DropdownMenuItemIconLabel>
|
</DropdownMenuItemIconLabel>
|
||||||
</DropdownMenuItem>
|
</DropdownMenuItem>
|
||||||
<DropdownMenuItem
|
<DropdownMenuItem
|
||||||
|
className="text-rose-600"
|
||||||
onClick={() => setIsDeleteParticipantModalVisible(true)}
|
onClick={() => setIsDeleteParticipantModalVisible(true)}
|
||||||
>
|
>
|
||||||
<DropdownMenuItemIconLabel icon={TrashIcon}>
|
<DropdownMenuItemIconLabel icon={TrashIcon}>
|
||||||
|
|
Loading…
Add table
Reference in a new issue