Files
zellyy-finance/src/pages/PaymentMethods.tsx
gpt-engineer-app[bot] f228410b83 Fix: Resolve Toast Type Error
The toast function was updated to correctly pass the 'id' property, resolving the TypeScript error.
2025-03-16 09:17:47 +00:00

63 lines
2.2 KiB
TypeScript

import React from 'react';
import NavBar from '@/components/NavBar';
import { ArrowLeft, CreditCard, PlusCircle } from 'lucide-react';
import { useNavigate } from 'react-router-dom';
import { Button } from '@/components/ui/button';
import { useToast } from '@/hooks/useToast.wrapper';
const PaymentMethods = () => {
const navigate = useNavigate();
const { toast } = useToast();
const handleAddPayment = () => {
toast({
title: "알림",
description: "이 결제 기능은 아직 지원하지 않습니다."
});
};
return <div className="min-h-screen bg-neuro-background pb-24">
<div className="max-w-md mx-auto px-6">
{/* Header */}
<header className="py-8">
<div className="flex items-center mb-6">
<Button variant="ghost" size="icon" onClick={() => navigate('/settings')} className="mr-2">
<ArrowLeft size={20} />
</Button>
<h1 className="text-2xl font-bold neuro-text"> </h1>
</div>
</header>
{/* 등록된 결제 수단이 없습니다 메시지 */}
<div className="neuro-flat p-6 mb-6 text-center">
<div className="flex flex-col items-center">
<div className="neuro-pressed p-3 rounded-full text-gray-400 mb-4">
<CreditCard size={24} />
</div>
<h3 className="font-medium mb-2"> </h3>
<p className="text-sm text-gray-500">
</p>
</div>
</div>
{/* Notice */}
<div className="mb-8 p-4 bg-amber-50 rounded-md border border-amber-200">
<p className="text-sm text-center text-neuro-income"> .</p>
</div>
{/* Add Payment Method Button */}
<div className="mt-8">
<Button className="w-full bg-gray-400 hover:bg-gray-400/90 text-white cursor-not-allowed" onClick={handleAddPayment}>
<PlusCircle size={16} className="mr-2" />
</Button>
</div>
</div>
<NavBar />
</div>;
};
export default PaymentMethods;