mirror of
https://gitlab.com/mbugroup/lti-web-client.git
synced 2026-05-25 07:45:47 +00:00
Merge branch 'fix/master-data-product' into 'development'
[FIX/FE] Master Data Product See merge request mbugroup/lti-web-client!181
This commit is contained in:
@@ -92,7 +92,6 @@ export const ProductFormSchema: Yup.ObjectSchema<ProductFormSchemaType> =
|
|||||||
.typeError('Harga wajib diisi!'),
|
.typeError('Harga wajib diisi!'),
|
||||||
})
|
})
|
||||||
)
|
)
|
||||||
.min(1, 'Minimal harus ada 1 supplier!')
|
|
||||||
.required('Supplier wajib diisi!'),
|
.required('Supplier wajib diisi!'),
|
||||||
|
|
||||||
flags: Yup.array()
|
flags: Yup.array()
|
||||||
|
|||||||
@@ -527,6 +527,7 @@ const ProductForm = ({ type = 'add', initialValues }: ProductFormProps) => {
|
|||||||
idx
|
idx
|
||||||
)}
|
)}
|
||||||
isClearable
|
isClearable
|
||||||
|
isDisabled={type === 'detail'}
|
||||||
className={{
|
className={{
|
||||||
wrapper: 'min-w-48 w-full',
|
wrapper: 'min-w-48 w-full',
|
||||||
}}
|
}}
|
||||||
@@ -573,16 +574,18 @@ const ProductForm = ({ type = 'add', initialValues }: ProductFormProps) => {
|
|||||||
</table>
|
</table>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div className='w-full flex flex-row justify-center'>
|
{type !== 'detail' && (
|
||||||
<Button
|
<div className='w-full flex flex-row justify-center'>
|
||||||
type='button'
|
<Button
|
||||||
color='success'
|
type='button'
|
||||||
onClick={addSupplierHandler}
|
color='success'
|
||||||
>
|
onClick={addSupplierHandler}
|
||||||
<Icon icon='ic:round-plus' width={24} height={24} />{' '}
|
>
|
||||||
Tambah Supplier
|
<Icon icon='ic:round-plus' width={24} height={24} />{' '}
|
||||||
</Button>
|
Tambah Supplier
|
||||||
</div>
|
</Button>
|
||||||
|
</div>
|
||||||
|
)}
|
||||||
</Card>
|
</Card>
|
||||||
)}
|
)}
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
Reference in New Issue
Block a user