mirror of
https://github.com/scm-manager/scm-manager.git
synced 2025-11-12 00:15:44 +01:00
do not forward close button but close function as button is always the same
This commit is contained in:
@@ -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}/>
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user