setting notification

This commit is contained in:
hamid zarghami
2026-01-05 10:14:10 +03:30
parent 8cfe4eaf8b
commit 541898d48e
3 changed files with 14 additions and 4 deletions
+10 -1
View File
@@ -1,9 +1,10 @@
import Tabs from '@/components/Tabs'
import { Money2, Setting4 } from 'iconsax-react'
import { Money2, NotificationStatus, Setting4 } from 'iconsax-react'
import { useState, type FC } from 'react'
import { SettingTabEnum } from './enum/Enum'
import GeneralSettings from './GeneralSettings'
import ScoreSetting from './components/ScoreSetting'
import NotificationsList from '../notifications/List'
const Setting: FC = () => {
@@ -26,6 +27,11 @@ const Setting: FC = () => {
label: 'تنظیمات امتیاز',
value: SettingTabEnum.FINANCIAL,
},
{
icon: <NotificationStatus color={activeTab === SettingTabEnum.NOTIFICATION ? 'black' : '#8C90A3'} size={24} />,
label: 'تنظیمات اعلان',
value: SettingTabEnum.NOTIFICATION,
},
]}
onChange={(value: string) => setActiveTab(value as SettingTabEnum)}
active={activeTab}
@@ -39,6 +45,9 @@ const Setting: FC = () => {
{
activeTab === SettingTabEnum.FINANCIAL && <ScoreSetting />
}
{
activeTab === SettingTabEnum.NOTIFICATION && <NotificationsList />
}
</div>
</div>
)
+1
View File
@@ -3,4 +3,5 @@ export const enum SettingTabEnum {
PASSWORD = "password",
FINANCIAL = "financial",
DELIVERY = "delivery",
NOTIFICATION = "notification",
}