diff --git a/raven-app/src/components/feature/chat-header/ViewChannelDetailsButton.tsx b/raven-app/src/components/feature/chat-header/ViewChannelDetailsButton.tsx index f855fcaf2..e89415033 100644 --- a/raven-app/src/components/feature/chat-header/ViewChannelDetailsButton.tsx +++ b/raven-app/src/components/feature/chat-header/ViewChannelDetailsButton.tsx @@ -6,14 +6,16 @@ import { ChannelMembers } from "@/utils/channel/ChannelMembersProvider" import { Button, Dialog, Tooltip } from "@radix-ui/themes" import { UserAvatar } from "@/components/common/UserAvatar" import { BiSolidUser } from "react-icons/bi" +import { clsx } from "clsx" interface ViewChannelDetailsButtonProps { channelData: ChannelListItem, channelMembers: ChannelMembers, - updateMembers: () => void + updateMembers: () => void, + allowAddMembers: boolean } -export const ViewChannelDetailsButton = ({ channelData, channelMembers, updateMembers }: ViewChannelDetailsButtonProps) => { +export const ViewChannelDetailsButton = ({ channelData, allowAddMembers, channelMembers, updateMembers }: ViewChannelDetailsButtonProps) => { const [open, setOpen] = useState(false) @@ -26,13 +28,21 @@ export const ViewChannelDetailsButton = ({ channelData, channelMembers, updateMe return ( - + -