From c96e66dfb068fb1c91f2bbd53077e7296e2ae86c Mon Sep 17 00:00:00 2001 From: "gpt-engineer-app[bot]" <159125892+gpt-engineer-app[bot]@users.noreply.github.com> Date: Sat, 15 Mar 2025 23:20:11 +0000 Subject: [PATCH] Remove payment methods Removes the hardcoded payment methods from the payment methods page. --- src/pages/PaymentMethods.tsx | 68 ++++++------------------------------ 1 file changed, 11 insertions(+), 57 deletions(-) diff --git a/src/pages/PaymentMethods.tsx b/src/pages/PaymentMethods.tsx index 0c2f96a..65660ad 100644 --- a/src/pages/PaymentMethods.tsx +++ b/src/pages/PaymentMethods.tsx @@ -6,45 +6,6 @@ import { useNavigate } from 'react-router-dom'; import { Button } from '@/components/ui/button'; import { useToast } from '@/hooks/use-toast'; -const PaymentMethodCard = ({ - type, - label, - lastDigits, - expiry, - isDefault -}: { - type: 'card' | 'bank', - label: string, - lastDigits: string, - expiry?: string, - isDefault?: boolean -}) => { - return ( -
-
-
-
- -
-
-

{label}

-

- {type === 'card' ? '•••• •••• •••• ' : ''} - {lastDigits} - {expiry ? ` · ${expiry}` : ''} -

-
-
- {isDefault && ( - - 기본 - - )} -
-
- ); -}; - const PaymentMethods = () => { const navigate = useNavigate(); const { toast } = useToast(); @@ -74,24 +35,17 @@ const PaymentMethods = () => { - {/* Payment Methods List */} -
-

신용카드

- - - - + {/* 등록된 결제 수단이 없습니다 메시지 */} +
+
+
+ +
+

등록된 결제 수단이 없습니다

+

+ 새로운 결제 수단을 추가해 보세요 +

+
{/* Notice */}