Skip to content

Commit

Permalink
fix: update selected device css, mute all label
Browse files Browse the repository at this point in the history
  • Loading branch information
raviteja83 authored Feb 27, 2024
1 parent dfa9775 commit 6ba3cc6
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -57,11 +57,12 @@ export const Options = ({
<Dropdown.Item
key={option.label}
css={{
backgroundColor: selectedDeviceId === option.deviceId ? '$surface_bright' : '$surface_dim',
backgroundColor: '$surface_dim',
p: '$4 $8',
h: '$15',
fontSize: '$xs',
justifyContent: 'space-between',
color: selectedDeviceId === option.deviceId ? '$primary_bright' : '',
}}
onClick={() => {
onClick(option.deviceId);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ const MuteUnmuteOption = ({ roleName, peerList }: { peerList: HMSPeer[]; roleNam
<Dropdown.Item css={dropdownItemCSS} onClick={() => setTrackEnabled('audio', false)}>
<MicOffIcon />
<Text variant="sm" css={optionTextCSS}>
Mute Audio
Mute Audio for All
</Text>
</Dropdown.Item>
) : null}
Expand All @@ -72,7 +72,7 @@ const MuteUnmuteOption = ({ roleName, peerList }: { peerList: HMSPeer[]; roleNam
<Dropdown.Item css={dropdownItemCSS} onClick={() => setTrackEnabled('audio', true)}>
<MicOnIcon />
<Text variant="sm" css={optionTextCSS}>
Unmute Audio
Unmute Audio for All
</Text>
</Dropdown.Item>
) : null}
Expand All @@ -85,7 +85,7 @@ const MuteUnmuteOption = ({ roleName, peerList }: { peerList: HMSPeer[]; roleNam
<Dropdown.Item css={dropdownItemCSS} onClick={() => setTrackEnabled('video', false)}>
<VideoOffIcon />
<Text variant="sm" css={optionTextCSS}>
Mute Video
Mute Video for All
</Text>
</Dropdown.Item>
) : null}
Expand All @@ -94,7 +94,7 @@ const MuteUnmuteOption = ({ roleName, peerList }: { peerList: HMSPeer[]; roleNam
<Dropdown.Item css={dropdownItemCSS} onClick={() => setTrackEnabled('video', true)}>
<VideoOnIcon />
<Text variant="sm" css={optionTextCSS}>
Unmute Video
Unmute Video for All
</Text>
</Dropdown.Item>
) : null}
Expand Down

0 comments on commit 6ba3cc6

Please sign in to comment.