File tree 1 file changed +5
-2
lines changed
packages/react-composites/src/composites/CallComposite/components/buttons
1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -31,7 +31,6 @@ export const Camera = (props: {
31
31
const role = useSelector ( getRole ) ;
32
32
33
33
const turnVideoOnCapability = useSelector ( getCapabilites ) ?. turnVideoOn ;
34
- console . log ( 'hi there from camera.tsx' , turnVideoOnCapability , _HighContrastAwareIcon ) ;
35
34
36
35
return (
37
36
< CameraButton
@@ -42,7 +41,11 @@ export const Camera = (props: {
42
41
enableDeviceSelectionMenu = { props . splitButtonsForDeviceSelection }
43
42
disableTooltip = { props . disableTooltip }
44
43
disabled = { cameraButtonProps . disabled || props . disabled || ! ! ( isRoomsCall && role === 'Unknown' ) }
45
- onRenderOffIcon = { undefined }
44
+ onRenderOffIcon = {
45
+ turnVideoOnCapability && ! turnVideoOnCapability . isPresent
46
+ ? ( ) => < _HighContrastAwareIcon disabled = { true } iconName = { 'ControlButtonCameraProhibited' } />
47
+ : undefined
48
+ }
46
49
onClickVideoEffects = { props . onClickVideoEffects }
47
50
componentRef = { props . componentRef }
48
51
/>
You can’t perform that action at this time.
0 commit comments