Skip to content

Commit

Permalink
Minor fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
fredcido committed Nov 27, 2023
1 parent d056eb6 commit 5e7a5db
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -276,6 +276,7 @@ export const BreakoutManager: React.FC = () => {
<WaitingList
unassignedUsers={unassignedUsers}
onSplitUsers={handleSplitUsers}
disabled={!isEditabled}
/>
) : null}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@ export const RoomConfig: React.FunctionComponent<Props> = ({
))}
</div>
) : null}

<DropdownMenu>
<DropdownMenu.Trigger asChild>
<IconButton
Expand All @@ -77,7 +78,7 @@ export const RoomConfig: React.FunctionComponent<Props> = ({
</IconButton>
</DropdownMenu.Trigger>
<DropdownMenu.Content>
{isEditable && unassignedUsers.length ? (
{unassignedUsers.length ? (
<div className="list">
<DropdownMenu.Item disabled>
Users not in the room
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,16 +7,23 @@ import "./WaitingList.css";
type Props = {
unassignedUsers: OnlineUserInfo[];
onSplitUsers: () => void;
disabled: boolean;
};

export const WaitingList: React.FC<Props> = ({
unassignedUsers,
onSplitUsers,
disabled,
}) => {
return (
<section className="waiting-list">
<h5>{unassignedUsers.length} user(s) not in rooms</h5>
<Button variant="solid-subtle" size="large" onClick={onSplitUsers}>
<Button
variant="solid-subtle"
size="large"
onClick={onSplitUsers}
disabled={disabled}
>
<Button.IconSlot>
<IconUserAdd />
</Button.IconSlot>
Expand Down

0 comments on commit 5e7a5db

Please sign in to comment.