Skip to content

Commit

Permalink
fix: move bankaccount checkbox
Browse files Browse the repository at this point in the history
  • Loading branch information
mortennordseth committed Sep 27, 2024
1 parent 878914f commit 3003586
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 24 deletions.
24 changes: 12 additions & 12 deletions src/page-modules/contact/ticket-control/forms/feeComplaintForm.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -349,6 +349,18 @@ const FormContent = ({ state, send }: FormProps) => {
}
/>

<Checkbox
label={t(PageText.Contact.inputFields.bankAccountNumber.checkbox)}
checked={state.context.hasInternationalBankAccount}
onChange={() =>
send({
type: 'ON_INPUT_CHANGE',
inputName: 'hasInternationalBankAccount',
value: !state.context.hasInternationalBankAccount,
})
}
/>

{!state.context.hasInternationalBankAccount && (
<Input
label={
Expand All @@ -370,18 +382,6 @@ const FormContent = ({ state, send }: FormProps) => {
/>
)}

<Checkbox
label={t(PageText.Contact.inputFields.bankAccountNumber.checkbox)}
checked={state.context.hasInternationalBankAccount}
onChange={() =>
send({
type: 'ON_INPUT_CHANGE',
inputName: 'hasInternationalBankAccount',
value: !state.context.hasInternationalBankAccount,
})
}
/>

{state.context.hasInternationalBankAccount && (
<div>
<Input
Expand Down
24 changes: 12 additions & 12 deletions src/page-modules/contact/travel-guarantee/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -367,6 +367,18 @@ export const RefundForm = () => {
}
/>

<Checkbox
label={t(PageText.Contact.inputFields.bankAccountNumber.checkbox)}
checked={state.context.hasInternationalBankAccount}
onChange={() =>
send({
type: 'ON_INPUT_CHANGE',
inputName: 'hasInternationalBankAccount',
value: !state.context.hasInternationalBankAccount,
})
}
/>

{!state.context.hasInternationalBankAccount && (
<Input
label={
Expand All @@ -389,18 +401,6 @@ export const RefundForm = () => {
/>
)}

<Checkbox
label={t(PageText.Contact.inputFields.bankAccountNumber.checkbox)}
checked={state.context.hasInternationalBankAccount}
onChange={() =>
send({
type: 'ON_INPUT_CHANGE',
inputName: 'hasInternationalBankAccount',
value: !state.context.hasInternationalBankAccount,
})
}
/>

{state.context.hasInternationalBankAccount && (
<div>
<Input
Expand Down

0 comments on commit 3003586

Please sign in to comment.