diff --git a/src/app/[name]/(Profile)/profile/settings/page.tsx b/src/app/[name]/(Profile)/profile/settings/page.tsx new file mode 100644 index 0000000..eb18bd9 --- /dev/null +++ b/src/app/[name]/(Profile)/profile/settings/page.tsx @@ -0,0 +1,228 @@ +'use client'; + +import AnimatedBottomSheet from '@/components/bottomsheet/AnimatedBottomSheet' +import EqualizerIcon from '@/components/icons/EqualizerIcon' +import TelegramIcon from '@/components/icons/TelegramIcon' +import TabContainer from '@/components/tab/TabContainer' +import { TabHeader } from '@/components/tab/TabHeader' +import { Switch } from '@/components/ui/switch'; +import Accordion from '@/components/utils/Accordion'; +import RateBar from '@/components/utils/RateBar' +import Seperator from '@/components/utils/Seperator'; +import useToggle from '@/hooks/helpers/useToggle'; +import clsx from 'clsx'; +import { Gallery, CallCalling, Whatsapp, Instagram, Clock, ArrowDown2, InfoCircle, Star1, Key, KeySquare, Notification1, ArrowLeft, User, MedalStar } from 'iconsax-react' +import { useRouter } from 'next/navigation'; +import React from 'react' + +function UserSettingsIndex() { + const router = useRouter(); + + const firstTab = () => { + + return ( +
+
+ +
+

تنظیمات نوتیفیکیشن

+
+ + +
+ + + ورود به حساب + + +
+ +
+ + + تغییر رمز عبور + + +
+
+ + + +
+ + + افزایش شارژ + + +
+ +
+ + + برداشت از کیف + + +
+ +
+ + + استفاده از تخفیف + + +
+
+ + + +
+ + + وضعیت سفارش + + +
+ +
+ + + تحویل + + +
+ +
+ + + کنسلی + + +
+
+ +
+ +
+ ) + } + + const secondTab = () => { + + return ( +
+ {/*
+
+ 4.1 +
+
+ + + + + +
+
+ +
+
+

نظرات کاربران

+ +
+
+ +
+ +
+ +
+
+ +
+ {sortings.map((v, i) => { + return ( +
+
changeSorting(i)} className="text-sm2 font-medium cursor-pointer"> + {v} +
+ {i < sortings.length - 1 &&
} +
+ ) + })} +
+
*/} +
+ ) + } + + return ( +
+
+ +

تنظیمات

+ { router.back() }} + /> +
+ + } + /> + } + /> + } + /> + +
+ ) +} + +export default UserSettingsIndex \ No newline at end of file diff --git a/src/components/ui/switch.tsx b/src/components/ui/switch.tsx index 8174f5f..2e072c7 100644 --- a/src/components/ui/switch.tsx +++ b/src/components/ui/switch.tsx @@ -14,7 +14,7 @@ function Switch({ dir="ltr" data-slot="switch" className={cn( - "peer data-[state=checked]:bg-primary data-[state=unchecked]:bg-input focus-visible:border-ring focus-visible:ring-ring/50 dark:data-[state=unchecked]:bg-input/80 inline-flex h-6 w-12 shrink-0 items-center rounded-full border border-transparent shadow-xs transition-all outline-none focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50", + "cursor-pointer peer data-[state=checked]:bg-primary data-[state=unchecked]:bg-input focus-visible:border-ring focus-visible:ring-ring/50 dark:data-[state=unchecked]:bg-input/80 inline-flex h-6 w-12 shrink-0 items-center rounded-full border border-transparent shadow-xs transition-all outline-none focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50", className )} {...props}