Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
updateFullscreenState() {
const previousFullscreenState = this.forceFullscreenModal;
this.forceFullscreenModal = window.innerWidth < getBreakpoints().small;
// Only update the modal if it's minimized, open, and changing states.
if (!this.props.isMaximized && this.props.isOpen && previousFullscreenState !== this.forceFullscreenModal) {
this.forceUpdate();
}
}
updateFullscreenState() {
const previousFullscreenState = this.forceFullscreenModal;
this.forceFullscreenModal = window.innerWidth < breakpoints.small;
// Only update the modal if it's minimized, open, and changing states.
if (!this.props.isMaximized && this.props.isOpen && previousFullscreenState !== this.forceFullscreenModal) {
this.forceUpdate();
}
}