mirror of
https://github.com/status-im/MyCrypto.git
synced 2025-01-24 09:59:35 +00:00
Fix an issue where the disableButtons property was not being passed to the modal body.
This commit is contained in:
parent
23f6ffe56f
commit
390f222f34
@ -56,7 +56,7 @@ export default class Modal extends PureComponent<Props, {}> {
|
||||
}
|
||||
|
||||
public render() {
|
||||
const { isOpen, title, children, buttons, handleClose, maxWidth } = this.props;
|
||||
const { isOpen, title, children, buttons, disableButtons, handleClose, maxWidth } = this.props;
|
||||
const hasButtons = buttons && buttons.length;
|
||||
const modalStyle: ModalStyle = {};
|
||||
|
||||
@ -65,7 +65,15 @@ export default class Modal extends PureComponent<Props, {}> {
|
||||
modalStyle.maxWidth = `${maxWidth}px`;
|
||||
}
|
||||
|
||||
const modalBodyProps = { title, children, modalStyle, hasButtons, buttons, handleClose };
|
||||
const modalBodyProps = {
|
||||
title,
|
||||
children,
|
||||
modalStyle,
|
||||
hasButtons,
|
||||
buttons,
|
||||
disableButtons,
|
||||
handleClose
|
||||
};
|
||||
|
||||
const modal = (
|
||||
<TransitionGroup>
|
||||
|
Loading…
x
Reference in New Issue
Block a user