fixed final button in server header dropdown
This commit is contained in:
parent
868021049c
commit
c0df5a4df0
@ -3,7 +3,7 @@
|
|||||||
import { ServerWithMembersWithProfiles } from "@/types";
|
import { ServerWithMembersWithProfiles } from "@/types";
|
||||||
import { MemberRole } from "@prisma/client";
|
import { MemberRole } from "@prisma/client";
|
||||||
import { DropdownMenu, DropdownMenuContent, DropdownMenuItem, DropdownMenuSeparator, DropdownMenuTrigger } from "@/components/ui/dropdown-menu";
|
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 {
|
interface ServerHeaderProps {
|
||||||
server: ServerWithMembersWithProfiles;
|
server: ServerWithMembersWithProfiles;
|
||||||
@ -75,10 +75,11 @@ export const SeverHeader = ({server, role}: ServerHeaderProps) => {
|
|||||||
<DropdownMenuItem
|
<DropdownMenuItem
|
||||||
className="text-rose-500 px-3 py-2 text-sm cursor-pointer"
|
className="text-rose-500 px-3 py-2 text-sm cursor-pointer"
|
||||||
>
|
>
|
||||||
Delete Server
|
Leave Server
|
||||||
<LogOutIcon className="w-4 h-4 ml-auto"/>
|
<LogOut className="w-4 h-4 ml-auto"/>
|
||||||
</DropdownMenuItem>
|
</DropdownMenuItem>
|
||||||
)}
|
)}
|
||||||
|
|
||||||
</DropdownMenuContent>
|
</DropdownMenuContent>
|
||||||
</DropdownMenu>
|
</DropdownMenu>
|
||||||
)
|
)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user