create attibute value
This commit is contained in:
@@ -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
|
||||
Reference in New Issue
Block a user