From 62026e7b7879bbde57ae8333fe3df0de8474cf0c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20Gra=CC=88=C3=9Fl?= Date: Tue, 17 Aug 2021 11:16:37 +0200 Subject: [PATCH] feat(RemediationsButton): Allow passing props for button --- .../src/RemediationButton/RemediationButton.js | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/packages/remediations/src/RemediationButton/RemediationButton.js b/packages/remediations/src/RemediationButton/RemediationButton.js index ce22a7c4f..1a0878d22 100644 --- a/packages/remediations/src/RemediationButton/RemediationButton.js +++ b/packages/remediations/src/RemediationButton/RemediationButton.js @@ -42,14 +42,16 @@ class RemediationButton extends React.Component { } render() { + const { children, buttonProps } = this.props; + if (this.state.remediations && !this.state.hasPermission) { return ( - @@ -60,8 +62,10 @@ class RemediationButton extends React.Component { { this.state.remediations.RemediationWizard && } @@ -74,7 +78,8 @@ RemediationButton.propTypes = { isDisabled: propTypes.bool, dataProvider: propTypes.func.isRequired, onRemediationCreated: propTypes.func, - children: propTypes.node + children: propTypes.node, + buttonProps: propTypes.object }; RemediationButton.defaultProps = {