Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
if (this.showEnableAudio) {
muteButton = (
this.setMuted(false)}
autoShowTooltip
/>
);
} else if (XR.isMuted(this.sceneName)) {
muteButton = this.setMuted(false)} />;
} else {
muteButton = this.setMuted(true)} />;
}
if (XR.isVRCapable(this.sceneName)) {
if (this.isVRPresentationActive) {
// logger.info('VR Presentation Active');
enterOrExitVRButton = (
this.toggleVRPresentation()} />
);
} else {
// logger.info('VR Presentation Inactive');
enterOrExitVRButton = (
this.toggleVRPresentation()} />
);
}
}
if (this.isFullscreen) {
screenSizeButton = (
this.minimize()} />
render() {
let muteButton;
let enterOrExitVRButton;
let screenSizeButton;
if (XR.isSceneLoaded(this.props.sceneName)) {
if (this.state.showEnableAudio) {
muteButton = this.setMuted(false)} autoShowTooltip />
} else if (XR.isMuted(this.props.sceneName)) {
muteButton = this.setMuted(false)} />
} else {
muteButton = this.setMuted(true)} />
}
if (XR.isVRCapable(this.props.sceneName)) {
if (this.state.isVRPresentationActive) {
logger.info('VR Presentation Active');
enterOrExitVRButton = this.toggleVRPresentation()} />
} else {
logger.info('VR Presentation Inactive');
enterOrExitVRButton = this.toggleVRPresentation()} />
}
}
if (this.state.isFullscreen) {
screenSizeButton = this.minimize()} />
} else {
screenSizeButton = this.maximize()} />
}
}
render() {
let muteButton;
let enterOrExitVRButton;
let screenSizeButton;
if (XR.isSceneLoaded(this.props.sceneName)) {
if (this.state.showEnableAudio) {
muteButton = this.setMuted(false)} autoShowTooltip />
} else if (XR.isMuted(this.props.sceneName)) {
muteButton = this.setMuted(false)} />
} else {
muteButton = this.setMuted(true)} />
}
if (XR.isVRCapable(this.props.sceneName)) {
if (this.state.isVRPresentationActive) {
logger.info('VR Presentation Active');
enterOrExitVRButton = this.toggleVRPresentation()} />
} else {
logger.info('VR Presentation Inactive');
enterOrExitVRButton = this.toggleVRPresentation()} />
}
}
if (this.state.isFullscreen) {
screenSizeButton = this.minimize()} />
} else {
screenSizeButton = this.maximize()} />
}
}