perf: reduce localstorage calls etc

This commit is contained in:
David Ralph
2021-08-15 20:33:06 +01:00
parent 16485c3d2c
commit e82ac7da9e
8 changed files with 21 additions and 30 deletions

View File

@@ -58,7 +58,7 @@ export default class Modals extends PureComponent {
render() {
return (
<>
<Navbar openModal={(modal) => this.toggleModal(modal, true)}/>
{this.state.welcomeModal === false ? <Navbar openModal={(modal) => this.toggleModal(modal, true)}/> : null}
<Modal closeTimeoutMS={300} id='modal' onRequestClose={() => this.toggleModal('mainModal', false)} isOpen={this.state.mainModal} className='Modal mainModal' overlayClassName='Overlay' ariaHideApp={false}>
<Main modalClose={() => this.toggleModal('mainModal', false)}/>
</Modal>