Skip to content

Commit

Permalink
fix: move bankaccount checkbox (#365)
Browse files Browse the repository at this point in the history
  • Loading branch information
mortennordseth authored and jonasbrunvoll committed Sep 27, 2024
1 parent 3172bf4 commit 4c0d0b8
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 4c0d0b8

Please sign in to comment.