diff options
Diffstat (limited to 'server/sonar-web/src/main/js/components/controls/ConfirmButton.tsx')
-rw-r--r-- | server/sonar-web/src/main/js/components/controls/ConfirmButton.tsx | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/server/sonar-web/src/main/js/components/controls/ConfirmButton.tsx b/server/sonar-web/src/main/js/components/controls/ConfirmButton.tsx index 12f86ba38e5..5eb8fe235b1 100644 --- a/server/sonar-web/src/main/js/components/controls/ConfirmButton.tsx +++ b/server/sonar-web/src/main/js/components/controls/ConfirmButton.tsx @@ -34,19 +34,15 @@ interface State { export default class ConfirmButton<T> extends React.PureComponent<Props<T>, State> { renderConfirmModal = ({ onClose }: ModalProps) => { - const { - children, - modalBody, - modalHeader, - modalHeaderDescription, - ...confirmModalProps - } = this.props; + const { children, modalBody, modalHeader, modalHeaderDescription, ...confirmModalProps } = + this.props; return ( <ConfirmModal header={modalHeader} headerDescription={modalHeaderDescription} onClose={onClose} - {...confirmModalProps}> + {...confirmModalProps} + > {modalBody} </ConfirmModal> ); |