From 92d2d3f05887fb053d3a64f440733d6450c94844 Mon Sep 17 00:00:00 2001 From: Mitchell Magro Date: Thu, 18 Dec 2025 22:20:51 +0100 Subject: [PATCH] feat/paymenet-methods --- .../PaymentMethod/PaymentMethod.tsx | 28 ++++++------------- 1 file changed, 8 insertions(+), 20 deletions(-) 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}

+
); }