fix: role button new product admin
This commit is contained in:
parent
52a75ff081
commit
097782d791
|
@ -154,7 +154,6 @@ export const Product = observer(() => {
|
|||
<div className={["ppob-container"].join(" ")}>
|
||||
<BreadcumbComponent data={routeData}/>
|
||||
<Card>
|
||||
{store.authentication.userData.role !== "Admin" && (
|
||||
<div>
|
||||
<Row style={{marginBottom: 20}}>
|
||||
<Col span={12}>
|
||||
|
@ -184,7 +183,7 @@ export const Product = observer(() => {
|
|||
}}
|
||||
/> */}
|
||||
|
||||
<div
|
||||
{store.authentication.userData.role == "Admin" && <div
|
||||
style={{
|
||||
display: store.ui.mediaQuery.isMobile ? "" : "flex",
|
||||
justifyContent: "flex-end",
|
||||
|
@ -202,12 +201,11 @@ export const Product = observer(() => {
|
|||
>
|
||||
Tambah Produk
|
||||
</Button>
|
||||
</div>
|
||||
</div>}
|
||||
</div>
|
||||
</Col>
|
||||
</Row>
|
||||
</div>
|
||||
)}
|
||||
<ProductComponent/>
|
||||
</Card>
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user