From da6c77cc17cd5ae75720d4137c4b1be1dd693359 Mon Sep 17 00:00:00 2001 From: Dylan Date: Thu, 14 Sep 2023 12:30:10 +0700 Subject: [PATCH 1/3] hide next button when editing waypoint --- src/pages/iou/WaypointEditor.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pages/iou/WaypointEditor.js b/src/pages/iou/WaypointEditor.js index 68e85a34746d..fc3ff2eb86bd 100644 --- a/src/pages/iou/WaypointEditor.js +++ b/src/pages/iou/WaypointEditor.js @@ -198,7 +198,7 @@ function WaypointEditor({transactionID, route: {params: {iouType = '', waypointI onSubmit={onSubmit} shouldValidateOnChange={false} shouldValidateOnBlur={false} - submitButtonText={translate('common.save')} + isSubmitButtonVisible={false} > Date: Thu, 14 Sep 2023 16:04:09 +0700 Subject: [PATCH 2/3] update prop type --- src/components/Form.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/components/Form.js b/src/components/Form.js index ef6c3ea10474..69e08063cd54 100644 --- a/src/components/Form.js +++ b/src/components/Form.js @@ -24,7 +24,7 @@ const propTypes = { formID: PropTypes.string.isRequired, /** Text to be displayed in the submit button */ - submitButtonText: PropTypes.string.isRequired, + submitButtonText: PropTypes.string, /** Controls the submit button's visibility */ isSubmitButtonVisible: PropTypes.bool, @@ -99,6 +99,7 @@ const defaultProps = { footerContent: null, style: [], validate: () => ({}), + submitButtonText: '' }; function Form(props) { From c6d0633d0298e36082512cb1fda25cb328e09ac2 Mon Sep 17 00:00:00 2001 From: Dylan Date: Fri, 15 Sep 2023 12:19:59 +0700 Subject: [PATCH 3/3] fix lint --- src/components/Form.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/Form.js b/src/components/Form.js index 69e08063cd54..4fcb6b6ec385 100644 --- a/src/components/Form.js +++ b/src/components/Form.js @@ -99,7 +99,7 @@ const defaultProps = { footerContent: null, style: [], validate: () => ({}), - submitButtonText: '' + submitButtonText: '', }; function Form(props) {