update section

This commit is contained in:
hamid zarghami
2026-02-02 10:03:24 +03:30
parent a25ab81d08
commit 7f2000ec6d
7 changed files with 154 additions and 3 deletions
+19 -1
View File
@@ -3,7 +3,7 @@ import { useGetSections } from './hooks/usePrintData'
import { Link } from 'react-router-dom'
import { Paths } from '@/config/Paths'
import Button from '@/components/Button'
import { AddSquare, More2 } from 'iconsax-react'
import { AddSquare, Edit, More2 } from 'iconsax-react'
import Table from '@/components/Table'
const SectionList: FC = () => {
@@ -52,6 +52,24 @@ const SectionList: FC = () => {
)
}
},
{
key: 'actions',
title: '',
render: (item) => {
return (
<div className='flex gap-2 items-center'>
<Link to={Paths.print.update + item.id}>
<Edit size={20} color='#0037FF' />
</Link>
{/* <TrashWithConfrim
onDelete={() => handleDelete(item.id)}
isloading={isDeleting}
colorIcon='red'
/> */}
</div>
)
}
},
]}
/>