feat: validasi detail product admin partner
This commit is contained in:
parent
e98914fb86
commit
8737da9da4
|
@ -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