diff --git a/web/app.react.js b/web/app.react.js --- a/web/app.react.js +++ b/web/app.react.js @@ -84,6 +84,7 @@ // Redux dispatch functions +dispatch: Dispatch, +setModal: (?React.Node) => void, + +modal: ?React.Node, }; type State = { +modal: ?React.Node, @@ -138,7 +139,7 @@ content = this.renderMainContent(); } else { content = ( - + ); } return ( @@ -146,7 +147,7 @@ {content} - {this.state.modal} + {this.props.modal} ); } @@ -231,7 +232,7 @@ const modalContext = React.useContext(ModalContext); invariant(modalContext, 'ModalContext not found'); - const { setModal } = modalContext; + const { setModal, modal } = modalContext; return ( ); },