do not forward close button but close function as button is always the same

This commit is contained in:
Maren Süwer
2019-02-01 10:43:11 +01:00
parent 73260f0072
commit ba971beea3
3 changed files with 9 additions and 15 deletions

View File

@@ -29,13 +29,6 @@ class ConfirmAlert extends React.Component<Props> {
render() {
const { title, message, buttons } = this.props;
const closeButton = (
<button
className="delete"
aria-label="close"
onClick={() => this.close()}
/>
);
const body= (
<>
{message}
@@ -54,7 +47,7 @@ class ConfirmAlert extends React.Component<Props> {
return (
<Modal title={title} closeButton={closeButton} body={body} active={true}/>
<Modal title={title} closeFunction={() => this.close()} body={body} active={true}/>
);
}
}