Skip to content

Commit 973279d

Browse files
committed
test
1 parent fe3403c commit 973279d

File tree

1 file changed

+5
-2
lines changed
  • packages/react-composites/src/composites/CallComposite/components/buttons

1 file changed

+5
-2
lines changed

packages/react-composites/src/composites/CallComposite/components/buttons/Camera.tsx

+5-2
Original file line numberDiff line numberDiff 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
/>

0 commit comments

Comments
 (0)