-
Notifications
You must be signed in to change notification settings - Fork 358
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(payment): INT-2672 Adjust verbiage when using Online Bank Transfe…
…r Payment Methods
- Loading branch information
1 parent
40d1f6f
commit 19f8d79
Showing
5 changed files
with
67 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
22 changes: 22 additions & 0 deletions
22
src/app/payment/storedInstrument/AccountInstrumentStorageField.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
import React, { memo, useMemo, FunctionComponent } from 'react'; | ||
|
||
import { TranslatedString } from '../../locale'; | ||
import { CheckboxFormField } from '../../ui/form'; | ||
|
||
export interface AccountInstrumentStorageFieldProps { | ||
name: string; | ||
} | ||
|
||
const AccountInstrumentStorageField: FunctionComponent<AccountInstrumentStorageFieldProps> = ({ name }) => { | ||
const labelContent = useMemo(() => ( | ||
<TranslatedString id="payment.account_instrument_save_payment_method_label" /> | ||
), []); | ||
|
||
return <CheckboxFormField | ||
additionalClassName="form-field--saveInstrument" | ||
labelContent={ labelContent } | ||
name={ name } | ||
/>; | ||
}; | ||
|
||
export default memo(AccountInstrumentStorageField); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters