From a03a8b7edc2d551c169f421d5f113a5bca5f0888 Mon Sep 17 00:00:00 2001 From: Vinoth Kumar V Date: Sat, 30 Mar 2024 21:04:31 +0530 Subject: [PATCH 1/2] features/p2p_transfer --- apps/user-app/app/(dashboard)/layout.tsx | 7 +++++++ apps/user-app/components/AddMoneyCard.tsx | 11 ++++++++--- 2 files changed, 15 insertions(+), 3 deletions(-) diff --git a/apps/user-app/app/(dashboard)/layout.tsx b/apps/user-app/app/(dashboard)/layout.tsx index 90dc203..7ad9e98 100644 --- a/apps/user-app/app/(dashboard)/layout.tsx +++ b/apps/user-app/app/(dashboard)/layout.tsx @@ -12,6 +12,7 @@ export default function Layout({ } title="Home" /> } title="Transfer" /> } title="Transactions" /> + } title="P2P Transfer" /> {children} @@ -36,4 +37,10 @@ function TransactionsIcon() { +} + +function P2PTransferIcon() { + return + + } \ No newline at end of file diff --git a/apps/user-app/components/AddMoneyCard.tsx b/apps/user-app/components/AddMoneyCard.tsx index 562f021..fed97a8 100644 --- a/apps/user-app/components/AddMoneyCard.tsx +++ b/apps/user-app/components/AddMoneyCard.tsx @@ -5,6 +5,7 @@ import { Center } from "@repo/ui/center"; import { Select } from "@repo/ui/select"; import { useState } from "react"; import { TextInput } from "@repo/ui/textinput"; +import { createOnRampTxn } from "../app/lib/actions/createOnRampTxn"; const SUPPORTED_BANKS = [{ name: "HDFC Bank", @@ -16,22 +17,26 @@ const SUPPORTED_BANKS = [{ export const AddMoney = () => { const [redirectUrl, setRedirectUrl] = useState(SUPPORTED_BANKS[0]?.redirectUrl); + const [amoutn, setAmount] = useState(0); + const [provider, setProvider] = useState(''); return
- { - + { + setAmount(Number(value)); }} />
Bank