Skip to content

Commit

Permalink
fix: same conditions for lower hand and bring to stage
Browse files Browse the repository at this point in the history
  • Loading branch information
KaustubhKumar05 committed Mar 18, 2024
1 parent 0d6968f commit 349bb2c
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -324,12 +324,15 @@ const HandRaisedAccordionParticipantActions = ({ peerId, role }: { peerId: strin
peerId,
role,
});
if (!shouldShowStageRoleChange) {
return null;
}
return (
<>
<Button variant="standard" css={quickActionStyle} onClick={lowerPeerHand}>
<CrossIcon height={18} width={18} />
</Button>
{shouldShowStageRoleChange && !isInStage && (
{!isInStage && (
<Button variant="primary" onClick={handleStageAction} css={quickActionStyle}>
<AddIcon height={18} width={18} />
</Button>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -148,18 +148,17 @@ export const RoleAccordion = ({
<ChevronRightIcon />
</Flex>
) : null}
{isHandRaisedAccordion && (
{isHandRaisedAccordion && canBringToStage && (
<>
<HorizontalDivider />
<Flex css={{ w: '100%', p: '$6', gap: '$4' }} justify="center">
<Button variant="standard" onClick={lowerAllHands} icon css={{ pl: '$2' }}>
<CrossIcon /> Lower all hands
</Button>
{canBringToStage && (
<Button onClick={bringAllToStage} icon css={{ pl: '$2' }}>
<AddIcon /> {bring_to_stage_label}
</Button>
)}

<Button onClick={bringAllToStage} icon css={{ pl: '$2' }}>
<AddIcon /> {bring_to_stage_label}
</Button>
</Flex>
</>
)}
Expand Down

0 comments on commit 349bb2c

Please sign in to comment.