File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed
packages/react-composites/src/composites/CallComposite/components/buttons Expand file tree Collapse file tree 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: {
3131 const role = useSelector ( getRole ) ;
3232
3333 const turnVideoOnCapability = useSelector ( getCapabilites ) ?. turnVideoOn ;
34- console . log ( 'hi there from camera.tsx' , turnVideoOnCapability , _HighContrastAwareIcon ) ;
3534
3635 return (
3736 < CameraButton
@@ -42,7 +41,11 @@ export const Camera = (props: {
4241 enableDeviceSelectionMenu = { props . splitButtonsForDeviceSelection }
4342 disableTooltip = { props . disableTooltip }
4443 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+ }
4649 onClickVideoEffects = { props . onClickVideoEffects }
4750 componentRef = { props . componentRef }
4851 />
You can’t perform that action at this time.
0 commit comments