Skip to content

Commit d13eb61

Browse files
committed
Remove the showReviewButton prop frm FormWizard
#10132
1 parent 4f4cc6e commit d13eb61

File tree

1 file changed

+4
-7
lines changed
  • packages/client/src/v2-events/features/events/components

1 file changed

+4
-7
lines changed

packages/client/src/v2-events/features/events/components/FormWizard.tsx

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,10 @@ export const messages = defineMessages({
2222
description: 'Back button text',
2323
id: 'v2.buttons.back'
2424
},
25-
backToReview: {
25+
goToReview: {
2626
defaultMessage: 'Go to review',
2727
description: 'Go to review button text',
28-
id: 'v2.buttons.backToReviewsbb'
28+
id: 'v2.buttons.goToReview'
2929
}
3030
})
3131

@@ -38,8 +38,6 @@ export type FormWizardProps = PropsWithChildren<{
3838
/** Callback when the user submits the form wizard */
3939
onSubmit: () => void
4040
pageTitle: string
41-
42-
showReviewButton?: boolean
4341
}>
4442

4543
export const FormWizard = ({
@@ -49,8 +47,7 @@ export const FormWizard = ({
4947
pageTitle,
5048
onNextPage,
5149
onPreviousPage,
52-
continueButtonText = 'Continue',
53-
showReviewButton
50+
continueButtonText = 'Continue'
5451
}: FormWizardProps & {
5552
continueButtonText?: string
5653
}) => {
@@ -80,7 +77,7 @@ export const FormWizard = ({
8077
{continueButtonText}
8178
</Button>
8279
<Button size="large" type="secondary" onClick={onSubmit}>
83-
{intl.formatMessage(messages.backToReview)}
80+
{intl.formatMessage(messages.goToReview)}
8481
</Button>
8582
</Stack>
8683
</Content>

0 commit comments

Comments
 (0)