1
0
Fork 0
mirror of https://github.com/muerwre/vault-frontend.git synced 2025-04-25 04:46:40 +07:00

fixing dialogs

This commit is contained in:
muerwre 2019-08-02 18:02:36 +07:00
parent 80fc6523b7
commit 9220f09fe5
6 changed files with 77 additions and 10 deletions

View file

@ -3,7 +3,7 @@ import * as styles from "./styles.scss";
import { IState } from "~/redux/store";
import * as ACTIONS from "~/redux/modal/actions";
import { connect } from "react-redux";
import { DIALOG_CONTENT } from "~/redux/modal/constants";
import { DIALOG_CONTENT, IDialogProps } from "~/redux/modal/constants";
import ReactDOM from "react-dom";
const mapStateToProps = ({ modal }: IState) => ({ ...modal });
@ -38,7 +38,7 @@ const ModalUnconnected: FC<IProps> = ({
{React.createElement(DIALOG_CONTENT[dialog], {
onRequestClose,
onDialogChange: modalShowDialog
} as Attributes)}
} as IDialogProps)}
</div>
</div>
</div>