list of sections

This commit is contained in:
hamid zarghami
2026-02-02 09:44:05 +03:30
parent c3cb697fae
commit a25ab81d08
3 changed files with 41 additions and 3 deletions
+28 -1
View File
@@ -3,7 +3,8 @@ import { useGetSections } from './hooks/usePrintData'
import { Link } from 'react-router-dom'
import { Paths } from '@/config/Paths'
import Button from '@/components/Button'
import { AddSquare } from 'iconsax-react'
import { AddSquare, More2 } from 'iconsax-react'
import Table from '@/components/Table'
const SectionList: FC = () => {
@@ -28,6 +29,32 @@ const SectionList: FC = () => {
</Link>
</div>
<Table
data={data?.data}
columns={[
{
key: 'title',
title: 'عنوان'
},
{
key: 'order',
title: 'ترتیب'
},
{
key: 'attribute',
title: 'ویژگی ها',
render: (item) => {
return (
<Link to={Paths.formBuilder.list + item.id + `/print`} className='flex text-[#0037FF] gap-2 items-center'>
<More2 size={18} color='#0037FF' />
<div className='text-[13px]'>ویژگی ها</div>
</Link>
)
}
},
]}
/>
</div>
)
}