diff --git a/web/app.react.js b/web/app.react.js --- a/web/app.react.js +++ b/web/app.react.js @@ -85,11 +85,11 @@ +dispatch: Dispatch, }; type State = { - +currentModal: ?React.Node, + +modal: ?React.Node, }; class App extends React.PureComponent { state: State = { - currentModal: null, + modal: null, }; componentDidMount() { @@ -137,10 +137,7 @@ content = this.renderMainContent(); } else { content = ( - + ); } return ( @@ -148,7 +145,7 @@ {content} - {this.state.currentModal} + {this.state.modal} ); } @@ -191,7 +188,7 @@ } setModal = (modal: ?React.Node) => { - this.setState({ currentModal: modal }); + this.setState({ modal }); }; clearModal() {