Merge branch 'develop' into 'devops-staging'
feat: validasi detail product admin partner See merge request empatnusabangsa/ppob/ppob-frontend!174
This commit is contained in:
commit
1e13b4e718
|
@ -280,7 +280,7 @@ export const ProductComponent = observer((props) => {
|
||||||
|
|
||||||
const handleClickRow = (record, index) => ({
|
const handleClickRow = (record, index) => ({
|
||||||
onClick: (event) => {
|
onClick: (event) => {
|
||||||
role === "Admin Partner" ? history.push(LINKS.PRODUCT_DETAIL.replace(":id", record.product_id)) : ''
|
history.push(LINKS.PRODUCT_DETAIL.replace(":id", record.product_id))
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
return (
|
return (
|
||||||
|
@ -298,7 +298,7 @@ export const ProductComponent = observer((props) => {
|
||||||
? store.product.dataProductPartner
|
? store.product.dataProductPartner
|
||||||
: store.product.data
|
: store.product.data
|
||||||
}
|
}
|
||||||
onRow={handleClickRow}
|
onRow={role === "Admin Partner" ? false : handleClickRow}
|
||||||
pagination={{
|
pagination={{
|
||||||
pageSize: store.authentication.userData.role === "Admin" ? store.product.pageSize : store.product.pageSizeProductPartner,
|
pageSize: store.authentication.userData.role === "Admin" ? store.product.pageSize : store.product.pageSizeProductPartner,
|
||||||
total:
|
total:
|
||||||
|
|
Loading…
Reference in New Issue
Block a user