Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
constructor(props) {
super(props);
UIEvents.addListener(NavDrawer.EVENT_CLOSE, this.setFocus);
}
componentWillUnmount() {
UIEvents.addListener(NavDrawer.EVENT_CLOSE, this.setFocus);
}
componentDidMount() {
UIEvents.addListener(MODAL_EVENTS.SHOW, this.handleModalShow);
UIEvents.addListener(MODAL_EVENTS.HIDE, this.handleModalHide);
}
componentDidMount() {
UIEvents.addListener(MODAL_EVENTS.SHOW, this.handleModalShow);
UIEvents.addListener(MODAL_EVENTS.HIDE, this.handleModalHide);
}