list of attribute values
This commit is contained in:
@@ -2,6 +2,8 @@ import { type FC } from 'react'
|
||||
import { useParams } from 'react-router-dom'
|
||||
import { useGetAttributeValues } from '../hooks/useProductData'
|
||||
import CreateValue from '../components/CreateValue'
|
||||
import Table from '@/components/Table'
|
||||
import { Edit } from 'iconsax-react'
|
||||
|
||||
const AttributeValues: FC = () => {
|
||||
|
||||
@@ -19,6 +21,36 @@ const AttributeValues: FC = () => {
|
||||
/>
|
||||
</div>
|
||||
|
||||
<div className='mt-6'>
|
||||
<Table
|
||||
columns={[
|
||||
{
|
||||
key: 'value',
|
||||
title: 'مقدار'
|
||||
},
|
||||
{
|
||||
key: 'order',
|
||||
title: 'ترتیب'
|
||||
},
|
||||
{
|
||||
key: 'actions',
|
||||
title: '',
|
||||
render: () => {
|
||||
return (
|
||||
<div className='flex gap-2 items-center'>
|
||||
<Edit
|
||||
size={20}
|
||||
color='#0037FF'
|
||||
/>
|
||||
</div>
|
||||
)
|
||||
}
|
||||
}
|
||||
]}
|
||||
data={data?.data}
|
||||
/>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user