Skip to content

Commit

Permalink
Fix Form Upload validation mismatched props bug (#33291)
Browse files Browse the repository at this point in the history
  • Loading branch information
Thrillberg authored Dec 3, 2024
1 parent 7000ae6 commit 1ef3f48
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion src/applications/simple-forms/form-upload/pages/helpers.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -28,13 +28,18 @@ export const CustomTopContent = () => {
);
};

/** @type {CustomPageType} */
export const CustomAlertPage = props => (
<div className="form-panel">
{props.alert}
<SchemaForm {...props}>
<>
{props.contentBeforeButtons}
<FormNavButtons {...props} submitToContinue />
<FormNavButtons
goBack={props.goBack}
goForward={props.onContinue}
submitToContinue
/>
{props.contentAfterButtons}
</>
</SchemaForm>
Expand All @@ -45,4 +50,6 @@ CustomAlertPage.propTypes = {
alert: PropTypes.element,
contentAfterButtons: PropTypes.element,
contentBeforeButtons: PropTypes.element,
goBack: PropTypes.func,
onContinue: PropTypes.func,
};

0 comments on commit 1ef3f48

Please sign in to comment.