list of attribute values

This commit is contained in:
hamid zarghami
2026-01-25 11:46:37 +03:30
parent d3eab9ed75
commit 5a129dfcda
@@ -2,6 +2,8 @@ import { type FC } from 'react'
import { useParams } from 'react-router-dom' import { useParams } from 'react-router-dom'
import { useGetAttributeValues } from '../hooks/useProductData' import { useGetAttributeValues } from '../hooks/useProductData'
import CreateValue from '../components/CreateValue' import CreateValue from '../components/CreateValue'
import Table from '@/components/Table'
import { Edit } from 'iconsax-react'
const AttributeValues: FC = () => { const AttributeValues: FC = () => {
@@ -19,6 +21,36 @@ const AttributeValues: FC = () => {
/> />
</div> </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> </div>
) )
} }