fixed final button in server header dropdown

This commit is contained in:
Bob Burningham 2023-10-13 00:43:55 -07:00
parent 868021049c
commit c0df5a4df0

View File

@ -3,7 +3,7 @@
import { ServerWithMembersWithProfiles } from "@/types";
import { MemberRole } from "@prisma/client";
import { DropdownMenu, DropdownMenuContent, DropdownMenuItem, DropdownMenuSeparator, DropdownMenuTrigger } from "@/components/ui/dropdown-menu";
import { ChevronDown, LogOutIcon, Plus, PlusCircle, Settings, Trash, Users } from "lucide-react";
import { ChevronDown, LogOut, LogOutIcon, Plus, PlusCircle, Settings, Trash, Users } from "lucide-react";
interface ServerHeaderProps {
server: ServerWithMembersWithProfiles;
@ -75,10 +75,11 @@ export const SeverHeader = ({server, role}: ServerHeaderProps) => {
<DropdownMenuItem
className="text-rose-500 px-3 py-2 text-sm cursor-pointer"
>
Delete Server
<LogOutIcon className="w-4 h-4 ml-auto"/>
Leave Server
<LogOut className="w-4 h-4 ml-auto"/>
</DropdownMenuItem>
)}
</DropdownMenuContent>
</DropdownMenu>
)