create attibute value

This commit is contained in:
hamid zarghami
2026-01-25 11:43:57 +03:30
parent 69fb2786bc
commit d3eab9ed75
8 changed files with 189 additions and 1 deletions
@@ -0,0 +1,26 @@
import { type FC } from 'react'
import { useParams } from 'react-router-dom'
import { useGetAttributeValues } from '../hooks/useProductData'
import CreateValue from '../components/CreateValue'
const AttributeValues: FC = () => {
const { id } = useParams()
const { data, refetch } = useGetAttributeValues(Number(id))
return (
<div className='mt-5'>
<div className='flex justify-between items-center'>
<h1 className='text-lg font-light'>مقادیر</h1>
<CreateValue
id={Number(id)}
refetch={refetch}
/>
</div>
</div>
)
}
export default AttributeValues