diff --git a/src/app/dashboard/components/receive.tsx b/src/app/dashboard/components/receive.tsx index e201d12..132d094 100644 --- a/src/app/dashboard/components/receive.tsx +++ b/src/app/dashboard/components/receive.tsx @@ -1,5 +1,11 @@ import React from "react"; -import { DownloadIcon, CheckCircleIcon, ClockIcon, XCircleIcon, QrCodeIcon } from "lucide-react"; +import { + DownloadIcon, + CheckCircleIcon, + ClockIcon, + XCircleIcon, +} from "lucide-react"; +import { MdCallReceived } from "react-icons/md"; import { CopyButton } from "./copy-button"; import QrCode from "./qr-code"; import { WalletInjectedProps } from "./wallet-wrapper"; @@ -43,81 +49,119 @@ interface IncomingPayment { status: string; } -export const Receive: React.FC = ({ starknetId, address, recentPayments }) => { - +export const Receive: React.FC< + WalletInjectedProps & { + recentPayments: IncomingPayment[]; + } +> = ({ starknetId, address, recentPayments }) => { return ( -
-
-
-

Receive Money

-

Share your wallet details to recieve payments

-
-
-
-

Your Payment QR Code

-

Scan to send money to your wallet

+
+
+
+

Receive Money

+

+ Share your wallet details to receive payments +

- -
-
-
-

Wallet Details

-

Share these details to receive payments

+
+
+

+ Your Payment QR Code +

+

+ Scan to send money to your wallet +

+
+
-
- { starknetId &&
- -
- - + +
+
+

Wallet Details

+

+ Share these details to receive payments +

+
+
+ {starknetId && ( +
+ +
+ +
+ +
+
-
- } - { address - ?
- + )} + {address ? ( +
+
- - + +
+ +
-
- :

Connect wallet to view address

- } +
+ ) : ( +

+ Connect wallet to view address +

+ )} +
-
-
-
-

Recent Incoming Payments

-

Your latest recieved transactions

-
-
- {recentPayments.map((tx, i) => ( +
+
+

+ Recent Incoming Payments +

+

+ Your latest received transactions +

+
+
+ {recentPayments.map((tx, i) => (
-
- +
+
-
-
From {tx.from}
-
{tx.date}
+
+
+ From {tx.from} +
+
+ {tx.date} +
-
-
{tx.amount}
- {getStatusBadge(tx.status)} +
+
+ {tx.amount} +
+
{getStatusBadge(tx.status)}
- ))} + ))} +
-
); }; -export default Receive +export default Receive; diff --git a/src/app/dashboard/components/send.tsx b/src/app/dashboard/components/send.tsx index 18aee35..d465af4 100644 --- a/src/app/dashboard/components/send.tsx +++ b/src/app/dashboard/components/send.tsx @@ -140,46 +140,48 @@ export const Send: React.FC = ({ } if(!isConnected) { - return
-
-
-

Connect Wallet

-

Connect your wallet to send money

+ return
+
+
+

Connect Wallet

+

Connect your wallet to send money

} return ( -
-
-
-

Send Money

-

Transfer funds instantly across the globe

-
-
-
-
-

Send Funds

-

Enter recipient details and amount to transfer

-
-
- - - {errors.recipient_address?.message &&

{errors?.recipient_address?.message}

} +
+
+
+

Send Money

+

Transfer funds instantly across the globe

+ + +
+
+

Send Funds

+

Enter recipient details and amount to transfer

+
+ +
+ + + {errors.recipient_address?.message &&

{errors?.recipient_address?.message}

} +
-
-
-
+
+
+
{ isBalanceAvailable && } -
- - {errors.amount?.message &&

{errors?.amount?.message}

} -
-
- -
+
+ + {errors.amount?.message &&

{errors?.amount?.message}

} +
+ +
+ +
-
- +
+ +
+
-
-
-
- -