add dropdown to list view

event-type-list
Ryukemeister 2023-10-25 20:56:55 +05:30
parent 5354615154
commit 2d27284f0e
1 changed files with 11 additions and 1 deletions

View File

@ -1,7 +1,9 @@
import { Badge } from "@/components/ui/badge"; import { Badge } from "@/components/ui/badge";
import { Button } from "@/components/ui/button"; import { Button } from "@/components/ui/button";
import { DropdownMenu, DropdownMenuTrigger } from "@/components/ui/dropdown-menu";
import { Switch } from "@/components/ui/switch"; import { Switch } from "@/components/ui/switch";
import { Tooltip, TooltipContent, TooltipProvider, TooltipTrigger } from "@/components/ui/tooltip"; import { Tooltip, TooltipContent, TooltipProvider, TooltipTrigger } from "@/components/ui/tooltip";
import { MoreHorizontal } from "lucide-react";
import { memo } from "react"; import { memo } from "react";
import { useOrgBranding } from "@calcom/ee/organizations/context/provider"; import { useOrgBranding } from "@calcom/ee/organizations/context/provider";
@ -187,7 +189,15 @@ export function EventType({
</div> </div>
</div> </div>
</div> </div>
<div className="min-w-9 mx-5 flex sm:hidden" /> <div className="min-w-9 mx-5 flex sm:hidden">
<DropdownMenu>
<DropdownMenuTrigger asChild>
<Button type="button" className="bg-secondary text-secondary">
<MoreHorizontal />
</Button>
</DropdownMenuTrigger>
</DropdownMenu>
</div>
</div> </div>
</li> </li>
); );