Skip to content

Commit

Permalink
Unmute alert at top and show micOff for me
Browse files Browse the repository at this point in the history
  • Loading branch information
YotaYota committed Oct 11, 2024
1 parent 663cf0c commit 4080afd
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 deletions.
4 changes: 2 additions & 2 deletions src/components/stateindicators/MeStateIndicators.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,12 @@ import RaiseHand from '@mui/icons-material/BackHand';
import { useAppSelector } from '../../store/hooks';

const MeStateIndicators = (): JSX.Element => {
const micEnabled = useAppSelector((state) => state.me.micEnabled);
const audioMuted = useAppSelector((state) => state.me.audioMuted);
const raisedHand = useAppSelector((state) => state.me.raisedHand);

return (
<>
{ !micEnabled && <MicOff color='error' fontSize='small' /> }
{ audioMuted && <MicOff color='error' fontSize='small' /> }
{ raisedHand && <RaiseHand fontSize='small' /> }
</>
);
Expand Down
5 changes: 1 addition & 4 deletions src/components/unmutealert/UnmuteAlert.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,7 @@ import { useAppSelector } from '../../store/hooks';

const StyledAlert = styled(Alert)(() => ({
position: 'absolute',
width: '40%',
left: '50%',
top: '50%',
transform: 'translate(-50%, -50%)',
width: '100%',
transition: 'opacity 0.5s ease',
textAlign: 'center',
opacity: 0,
Expand Down

0 comments on commit 4080afd

Please sign in to comment.