mirror of
https://github.com/valitydev/checkout.git
synced 2024-11-06 02:25:18 +00:00
Add SBP type (#312)
This commit is contained in:
parent
9e135c253f
commit
43a667f6a5
@ -11,7 +11,7 @@ export type DestinationBankCard = {
|
||||
};
|
||||
|
||||
export type DestinationSBP = {
|
||||
destinationType: 'DestinationSBP';
|
||||
destinationType: 'DestinationSBP' | 'SBP';
|
||||
phoneNumber: string;
|
||||
bankName?: string;
|
||||
recipientName?: string;
|
||||
|
@ -36,7 +36,7 @@ export function DestinationInfo({ destination }: DestinationInfoProps) {
|
||||
/>
|
||||
)}
|
||||
{destination.destinationType === 'BankAccount' && <DestinationBankAccountInfo destination={destination} />}
|
||||
{destination.destinationType === 'DestinationSBP' && (
|
||||
{(destination.destinationType === 'DestinationSBP' || destination.destinationType === 'SBP') && (
|
||||
<InfoItem
|
||||
formatter={formatPhoneNumber}
|
||||
icon={currency === 'RUB' ? <SBPIcon /> : null}
|
||||
|
Loading…
Reference in New Issue
Block a user