Skip to content

Commit

Permalink
Release 2.0.99-b7
Browse files Browse the repository at this point in the history
  • Loading branch information
Yeon Vinzenz Varapragasam authored and Yeon Vinzenz Varapragasam committed Jul 18, 2024
1 parent 6866996 commit 8435a63
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/pages/Devices/EditVirtuals/EditMatrix/MControls.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,7 @@ const MControls = ({
const virtuals = useStore((state) => state.virtuals)
const infoAlerts = useStore((state) => state.ui.infoAlerts)
const setInfoAlerts = useStore((state) => state.ui.setInfoAlerts)
const features = useStore((state) => state.features)

const handleChange = (event: React.SyntheticEvent, newValue: string) => {
if (newValue === '1') setDnd(false)
Expand Down Expand Up @@ -399,12 +400,12 @@ const MControls = ({
</Collapse>
)}
</Collapse>
<Button sx={{ alignItems: 'center', textTransform: 'none'}} onClick={()=> {
{features.matrix_cam && <Button sx={{ alignItems: 'center', textTransform: 'none'}} onClick={()=> {
getDevices()
setCamMapper(!camMapper)}
}>
<EmergencyRecording sx={{ marginRight: 1}} />{camMapper ? 'Exit CameraMapper' : 'Map Pixels via Camera'}
</Button>
</Button>}
<Collapse in={camMapper}>
<Webcam rowN={rowN} colN={colN} />
</Collapse>
Expand Down

0 comments on commit 8435a63

Please sign in to comment.