fix: role button new product admin

This commit is contained in:
caturbgs 2021-12-23 21:51:37 +07:00
parent 52a75ff081
commit 097782d791

View File

@ -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>