diff --git a/src/app/page.tsx b/src/app/page.tsx index f4567e1..1bfdacb 100644 --- a/src/app/page.tsx +++ b/src/app/page.tsx @@ -5,7 +5,6 @@ import { checkConnection, getPublicKey } from "@stellar/freighter-api"; import { Wallet, PlusCircle, ShieldCheck, Landmark } from "lucide-react"; import LoanTable from "../components/LoanTable"; import SkeletonRow from "../components/SkeletonRow"; -import Footer from "../components/layout/Footer"; import useTransactionToast from "../lib/useTransactionToast"; import { formatCurrency, formatDate } from "../lib/format"; @@ -14,6 +13,7 @@ export default function Page() { const [invoices, setInvoices] = useState([]); const [loading, setLoading] = useState(false); const [showMintForm, setShowMintForm] = useState(false); + const [isModalOpen, setIsModalOpen] = useState(false); // 1. Connect Stellar Wallet (Freighter) const connectWallet = async () => { @@ -62,7 +62,7 @@ export default function Page() { TradeFlow RWA setIsModalOpen(true)} className="flex items-center gap-2 bg-blue-600 hover:bg-blue-700 px-6 py-2 rounded-full transition" > @@ -162,6 +162,10 @@ export default function Page() { + setIsModalOpen(false)} /> + + setIsModalOpen(false)} /> + void; +} + +export default function WalletModal({ isOpen, onClose }: WalletModalProps) { + if (!isOpen) return null; + + return ( + + + + Connect Wallet + + + + + + + + + { + console.log("Freighter wallet selected"); + onClose(); + }} + > + + + + + + + Freighter + Stellar ecosystem wallet + + + + + + + + + + + + + MetaMask + Coming soon + + + + + + + + + + + WalletConnect + Coming soon + + + + + + + By connecting a wallet, you agree to the Terms of Service and Privacy Policy + + + + + ); +}
+ By connecting a wallet, you agree to the Terms of Service and Privacy Policy +