up
deploy to danak / build_and_deploy (push) Has been cancelled

This commit is contained in:
2026-06-26 16:21:34 +03:30
parent dde14d1d95
commit edddfb2a91
2 changed files with 32 additions and 14 deletions
+16 -12
View File
@@ -32,18 +32,22 @@ const ProductList: FC = () => {
<div className='flex justify-between items-center'> <div className='flex justify-between items-center'>
<h1 className='text-lg font-light'>محصولات</h1> <h1 className='text-lg font-light'>محصولات</h1>
<Link <div className='flex gap-3'>
to={Paths.product.create} <Link to={Paths.product.category.list}>
> <Button className='w-fit px-6'>
<Button <div className='text-[13px] font-light'>دستهبندیها</div>
className='w-fit px-6' </Button>
> </Link>
<div className='flex gap-1.5'>
<AddSquare size={18} color='black' /> <Link to={Paths.product.create}>
<div className='text-[13px] font-light'>محصول جدید</div> <Button className='w-fit px-6'>
</div> <div className='flex gap-1.5'>
</Button> <AddSquare size={18} color='black' />
</Link> <div className='text-[13px] font-light'>محصول جدید</div>
</div>
</Button>
</Link>
</div>
</div> </div>
<div className='mt-8'> <div className='mt-8'>
+16 -2
View File
@@ -3,7 +3,8 @@ import { useDeleteCategory, useGetCategory } from '../hooks/useProductData'
import Table from '@/components/Table' import Table from '@/components/Table'
import type { ColumnType, RowDataType } from '@/components/types/TableTypes' import type { ColumnType, RowDataType } from '@/components/types/TableTypes'
import type { CategoryType } from '../types/Types' import type { CategoryType } from '../types/Types'
import { Edit } from 'iconsax-react' import Button from '@/components/Button'
import { AddSquare, Edit } from 'iconsax-react'
import TrashWithConfrim from '@/components/TrashWithConfrim' import TrashWithConfrim from '@/components/TrashWithConfrim'
import { toast } from 'react-toastify' import { toast } from 'react-toastify'
import { extractErrorMessage } from '@/config/func' import { extractErrorMessage } from '@/config/func'
@@ -80,12 +81,25 @@ const CategoryList: FC = () => {
return ( return (
<div className='mt-5'> <div className='mt-5'>
<h1 className='text-lg font-light'>دسته بندی محصولات</h1> <div className='flex justify-between items-center'>
<h1 className='text-lg font-light'>دسته بندی محصولات</h1>
<Link to={Paths.product.category.create}>
<Button className='w-fit px-6'>
<div className='flex gap-1.5'>
<AddSquare size={18} color='black' />
<div className='text-[13px] font-light'>دستهبندی جدید</div>
</div>
</Button>
</Link>
</div>
<div className='mt-8'>
<Table<CategoryType & RowDataType> <Table<CategoryType & RowDataType>
columns={column} columns={column}
data={data?.data || [] as (CategoryType & RowDataType)[]} data={data?.data || [] as (CategoryType & RowDataType)[]}
/> />
</div>
</div> </div>
) )