From f7eb07cc13cb2a29b78269a1383779a455852f98 Mon Sep 17 00:00:00 2001 From: Mahyar Khanbolooki Date: Sat, 9 Aug 2025 15:07:13 +0330 Subject: [PATCH] add: wallet page --- .../[name]/(Profile)/profile/wallet/page.tsx | 111 ++++++++++++++++++ 1 file changed, 111 insertions(+) create mode 100644 src/app/[name]/(Profile)/profile/wallet/page.tsx diff --git a/src/app/[name]/(Profile)/profile/wallet/page.tsx b/src/app/[name]/(Profile)/profile/wallet/page.tsx new file mode 100644 index 0000000..e030cf9 --- /dev/null +++ b/src/app/[name]/(Profile)/profile/wallet/page.tsx @@ -0,0 +1,111 @@ +"use client"; + +import Button from '@/components/button/PrimaryButton'; +import InputField from '@/components/input/InputField'; +import { ef, ue } from '@/lib/helpers/utfNumbers'; +import { ArrowLeft, ArrowRight, WalletMinus } from 'iconsax-react'; +import { useRouter } from 'next/navigation'; +import React, { useState } from 'react' + +type Props = object + +function UserWalletIndex({ }: Props) { + const router = useRouter(); + const [chargeValue, setChargeValue] = useState('0'); + const chargeAction = (e: React.FormEvent) => { + e.preventDefault(); + const data = new FormData(e.currentTarget) + const value = Number(ue(String(data.get('chargeValue') ?? 0))) + 0; + console.log("Charge for: ", value); + } + + return ( +
+
+ +

پروفایل کاربری

+ { router.back() }} + /> +
+ +
+ +
+
+
+
+ + موجودی کیف پول +
+
+ {ef('250.000 تومان')} +
+
+
+ +
+
+ برای شارژ کیف پول خود میتوانید بر روی یکی از مبالغ زیر کلیک کنید و یا مبلغ دلخواه خود را وارد کنید +
+ + + + setChargeValue(e.target.value)} + /> +
+
+ +
+ +
+
+
+ ) +} + +export default UserWalletIndex \ No newline at end of file