Add modal stack to allow better boost modal and media modal interaction.

This commit is contained in:
Claire
2021-07-12 17:00:14 +02:00
parent ddf3f4cf85
commit c5b4e6b708
2 changed files with 7 additions and 11 deletions

View File

@@ -3,8 +3,8 @@ import { closeModal } from 'flavours/glitch/actions/modal';
import ModalRoot from '../components/modal_root';
const mapStateToProps = state => ({
type: state.get('modal').modalType,
props: state.get('modal').modalProps,
type: state.getIn(['modal', 0, 'modalType'], null),
props: state.getIn(['modal', 0, 'modalProps'], {}),
});
const mapDispatchToProps = dispatch => ({