diff --git a/src/features/payment-methods/PaymentMethod/PaymentMethod.tsx b/src/features/payment-methods/PaymentMethod/PaymentMethod.tsx index 823953d..899d8f8 100644 --- a/src/features/payment-methods/PaymentMethod/PaymentMethod.tsx +++ b/src/features/payment-methods/PaymentMethod/PaymentMethod.tsx @@ -10,38 +10,26 @@ interface IPaymentMethodProps { } function PaymentMethod({ method, onSelect }: IPaymentMethodProps) { + + const { name, type, isActive, icon } = method; const handleClick = () => { onSelect?.(method); }; return (
- {method.icon && ( + {icon && (
- {method.name} + {name}
)}
-

{method.name}

-

{method.type}

- {(method.minAmount || method.maxAmount) && ( -
- {method.minAmount && ( - - Min: ${method.minAmount} - - )} - {method.maxAmount && ( - - Max: ${method.maxAmount} - - )} -
- )} -
+

{name}

+

{type}

+
); }