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:
parent
80fc6523b7
commit
9220f09fe5
6 changed files with 77 additions and 10 deletions
|
@ -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>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue