From 1a8a78b706ac94fbb261d2c67ee77ad142b0c2cd Mon Sep 17 00:00:00 2001 From: aimane-chnaif Date: Sat, 15 Oct 2022 01:08:56 +1000 Subject: [PATCH] fix "Fix the error" link on form submit --- src/components/FormAlertWithSubmitButton.js | 6 +++--- src/components/FormAlertWrapper.js | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/components/FormAlertWithSubmitButton.js b/src/components/FormAlertWithSubmitButton.js index c3ef4b464c9a..3fbb5ac607b7 100644 --- a/src/components/FormAlertWithSubmitButton.js +++ b/src/components/FormAlertWithSubmitButton.js @@ -28,7 +28,7 @@ const propTypes = { message: PropTypes.string, /** Callback fired when the "fix the errors" link is pressed */ - onFixTheErrorsPressed: PropTypes.func, + onFixTheErrorsLinkPressed: PropTypes.func, /** Submit function */ onSubmit: PropTypes.func.isRequired, @@ -43,7 +43,7 @@ const defaultProps = { isMessageHtml: false, containerStyles: [], isLoading: false, - onFixTheErrorsPressed: () => {}, + onFixTheErrorsLinkPressed: () => {}, enabledWhenOffline: false, }; @@ -53,7 +53,7 @@ const FormAlertWithSubmitButton = props => ( isAlertVisible={props.isAlertVisible} isMessageHtml={props.isMessageHtml} message={props.message} - onFixTheErrorsPressed={props.onFixTheErrorsPressed} + onFixTheErrorsLinkPressed={props.onFixTheErrorsLinkPressed} > {isOffline => ((isOffline && !props.enabledWhenOffline) ? (