Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
componentDidMount () {
onLoading(loading => {
if (loading) {
nprogress.start()
} else {
nprogress.done()
}
})
}
render () {
componentDidMount () {
onLoading(loading => {
if (loading) {
NProgress.start()
} else {
NProgress.done()
}
})
if (window) {
window.addEventListener('resize', this.updateDimensions)
this.setState({
width: window.innerWidth,
sidebarIsOpen: window.innerWidth > 700,
})
}
}
componentDidMount() {
onLoading(loading => {
if (loading) {
nprogress.start();
} else {
nprogress.done();
}
});
}
render() {
componentDidMount() {
onLoading(loading => {
if (loading) {
nprogress.start();
} else {
nprogress.done();
}
});
}