sidebar name

This commit is contained in:
hamid zarghami
2025-05-07 08:53:41 +03:30
parent 00d46d26b9
commit 7e58aa0d3d
2 changed files with 19 additions and 3 deletions
+4 -2
View File
@@ -70,7 +70,8 @@
"logout": "خروج", "logout": "خروج",
"card": "حساب های بانکی", "card": "حساب های بانکی",
"payments": "پرداخت ها", "payments": "پرداخت ها",
"sliders": "اسلایدر" "sliders": "اسلایدر",
"support": "پلن پشتیبانی"
}, },
"slider": { "slider": {
"new_slider": "اسلایدر جدید", "new_slider": "اسلایدر جدید",
@@ -783,6 +784,7 @@
"price": "قیمت", "price": "قیمت",
"duration": "مدت", "duration": "مدت",
"features": "ویژگی ها", "features": "ویژگی ها",
"actions": "عملیات" "actions": "عملیات",
"new_plan": "پلن جدید"
} }
} }
+15 -1
View File
@@ -3,10 +3,11 @@ import { useGetPlans } from './hooks/useSupportData'
import { useTranslation } from 'react-i18next' import { useTranslation } from 'react-i18next'
import Td from '../../components/Td' import Td from '../../components/Td'
import { NumberFormat } from '../../config/func' import { NumberFormat } from '../../config/func'
import { Edit } from 'iconsax-react' import { Add, Edit } from 'iconsax-react'
import { Link } from 'react-router-dom' import { Link } from 'react-router-dom'
import { Pages } from '../../config/Pages' import { Pages } from '../../config/Pages'
import Delete from './components/Delete' import Delete from './components/Delete'
import Button from '../../components/Button'
const SupportList: FC = () => { const SupportList: FC = () => {
const { t } = useTranslation('global') const { t } = useTranslation('global')
@@ -18,6 +19,19 @@ const SupportList: FC = () => {
<div> <div>
{t('support.plans')} {t('support.plans')}
</div> </div>
<Link to={Pages.support.create}>
<Button
className='w-fit px-6'
>
<div className='flex gap-2 items-center'>
<Add size={20} color='white' />
<div>
{t('support.new_plan')}
</div>
</div>
</Button>
</Link>
</div> </div>
<div className='relative overflow-x-auto rounded-3xl mt-9 w-full'> <div className='relative overflow-x-auto rounded-3xl mt-9 w-full'>