diff --git a/src/app/globals.css b/src/app/globals.css index 2863116..2a34977 100644 --- a/src/app/globals.css +++ b/src/app/globals.css @@ -88,6 +88,10 @@ input[type="password"] { background: #555; } +.box-shadow-normal { + box-shadow: 0px 2px 16px 0px #00000014; +} + @theme inline { --color-background: var(--background); --color-foreground: var(--foreground); diff --git a/src/app/profile/layout.tsx b/src/app/profile/layout.tsx index 85f28c1..7d36da9 100644 --- a/src/app/profile/layout.tsx +++ b/src/app/profile/layout.tsx @@ -5,9 +5,9 @@ import { ReactQueryProvider } from '@/components/providers/ReactQueryProvider' export default function ProfileLayout({ children }: { children: React.ReactNode }) { return ( -
+
{children} -
+
) } diff --git a/src/app/profile/page.tsx b/src/app/profile/page.tsx index fdc4d16..7051f2f 100644 --- a/src/app/profile/page.tsx +++ b/src/app/profile/page.tsx @@ -1,28 +1,87 @@ "use client"; -import { useProfile } from '@/hooks/auth/useProfile'; -import { useAuthStore } from '@/zustand/authStore'; -import React, { useEffect } from 'react' +import Button from '@/components/button/PrimaryButton'; +// import { useProfile } from '@/hooks/auth/useProfile'; +// import { useAuthStore } from '@/zustand/authStore'; +import { ArrowLeft, Calendar2, CallCalling, Profile, Sms, Verify } from 'iconsax-react'; +import Image from 'next/image'; +import React from 'react' type Props = object function ProfileIndex({ }: Props) { - const isAuthenticated = useAuthStore((state) => state.isAuthenticated); + // const isAuthenticated = useAuthStore((state) => state.isAuthenticated); - const { mutate, data, isPending } = useProfile(); + // const { mutate, data, isPending } = useProfile(); - useEffect(() => { - if (isAuthenticated) { - mutate(); - } - }, [isAuthenticated]) + // useEffect(() => { + // if (isAuthenticated) { + // mutate(); + // } + // // eslint-disable-next-line react-hooks/exhaustive-deps + // }, [isAuthenticated]) return ( -
- {isPending && 'Loading...'} -
- {data && JSON.stringify(data)} -
+ <> +
+
پروفایل کاربری
+ +
+ +
+ +
+
+ user avatar +
+
علیرضا عابدزاده
+
+ + + شناسه کاربری: + + 2162165 +
+
+
+ +
+
+ + شماره همراه: + 09010901738 +
+
+ + ایمیل: + alirezaabed@gmail.com +
+
+ + تاریخ تولد: + 1375/5/14 +
+
+ + جنسیت: + آقا +
+
+
+ +
+ +
+
+ ) }