Skip to content

Commit

Permalink
Remove form values
Browse files Browse the repository at this point in the history
  • Loading branch information
paulgain committed Jan 31, 2024
1 parent a72df1b commit 924a811
Showing 1 changed file with 10 additions and 13 deletions.
23 changes: 10 additions & 13 deletions src/client/modules/ExportWins/Form/AddExportWinForm.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -80,19 +80,16 @@ const AddExportWinForm = ({ isEditing, csrfToken, currentAdviserId }) => {
id: queryParams.export || queryParams.exportwin,
}}
>
{({ values }) => {
return (
<>
<OfficerDetailsStep {...stepProps} />
<CreditForThisWinStep {...stepProps} />
<CustomerDetailsStep {...stepProps} />
<WinDetailsStep {...stepProps} />
<SupportProvidedStep {...stepProps} />
<CheckBeforeSendingStep {...stepProps} />
<pre>{JSON.stringify(values, null, 2)}</pre>
</>
)
}}
{() => (
<>
<OfficerDetailsStep {...stepProps} />
<CreditForThisWinStep {...stepProps} />
<CustomerDetailsStep {...stepProps} />
<WinDetailsStep {...stepProps} />
<SupportProvidedStep {...stepProps} />
<CheckBeforeSendingStep {...stepProps} />
</>
)}
</Form>
</FormLayout>
</DefaultLayout>
Expand Down

0 comments on commit 924a811

Please sign in to comment.