Detail Product

This commit is contained in:
ajat91.sudrajat 2021-12-21 17:41:08 +07:00
parent 4a2429bd8d
commit 06c2ac1593
3 changed files with 29 additions and 13 deletions

View File

@ -209,12 +209,14 @@ export const DesktopLayout = observer(() => {
icon={<ProfileOutlined />} icon={<ProfileOutlined />}
title="Payback" title="Payback"
> >
{store.authentication.userData.role !== "Retail" && (
<Menu.Item key="payback-to-user"> <Menu.Item key="payback-to-user">
<Link to={LINKS.PAYBACK}> <Link to={LINKS.PAYBACK}>
<PayCircleOutlined /> <PayCircleOutlined />
<span>Payback To</span> <span>Payback To</span>
</Link> </Link>
</Menu.Item> </Menu.Item>
)}
{store.authentication.userData.role !== "Admin" && ( {store.authentication.userData.role !== "Admin" && (
<Menu.Item key="payback-from-user"> <Menu.Item key="payback-from-user">
<Link to={LINKS.PAYBACKFROMUSER}> <Link to={LINKS.PAYBACKFROMUSER}>

View File

@ -127,12 +127,14 @@ export const MenuList = observer((props) => {
</Menu.Item> </Menu.Item>
)} )}
<SubMenu key="payback-main" icon={<ProfileOutlined />} title="Payback"> <SubMenu key="payback-main" icon={<ProfileOutlined />} title="Payback">
{store.authentication.userData.role !== "Retail" && (
<Menu.Item key="payback-to-user"> <Menu.Item key="payback-to-user">
<Link to={LINKS.PAYBACK}> <Link to={LINKS.PAYBACK}>
<PayCircleOutlined /> <PayCircleOutlined />
<span>Payback To</span> <span>Payback To</span>
</Link> </Link>
</Menu.Item> </Menu.Item>
)}
{store.authentication.userData.role !== "Admin" && ( {store.authentication.userData.role !== "Admin" && (
<Menu.Item key="payback-from-user"> <Menu.Item key="payback-from-user">
<Link to={LINKS.PAYBACKFROMUSER}> <Link to={LINKS.PAYBACKFROMUSER}>

View File

@ -399,11 +399,14 @@ export const Membership = observer(() => {
> >
<List.Item.Meta <List.Item.Meta
className={["cariparkir-container"].join(" ")} className={["cariparkir-container"].join(" ")}
title={item.username} title={item.name}
description={ description={
<div style={{}}> <div style={{}}>
<p> <p>
<small>Username : {item.username}</small> <br /> <small>Role : {item.roleName}</small> <br />
<small>Saldo Supplier : {item.amount}</small>{" "}
<br />
<small>Saldo System : {item.amount}</small> <br />
</p> </p>
</div> </div>
} }
@ -415,7 +418,16 @@ export const Membership = observer(() => {
margin: 0, margin: 0,
}} }}
> >
{item.username} <Button
type={
item?.isActive === true ? "danger" : "primary"
}
onClick={() =>
changeStatus(item?.id, item?.isActive)
}
>
{item?.isActive === true ? "Inactive" : "Active"}
</Button>
</p> </p>
</div> </div>
</List.Item> </List.Item>