Merge branch 'develop' into 'devops-staging'
fix: change hide action button in memberhship See merge request empatnusabangsa/ppob/ppob-frontend!13
This commit is contained in:
commit
bbe020ae4d
|
@ -165,13 +165,13 @@ export const Membership = observer(() => {
|
|||
key: "action",
|
||||
render: (text, record) => (
|
||||
<Space size="middle">
|
||||
<Button
|
||||
{store.authentication.userData.role === "Admin" && <Button
|
||||
type={record?.isActive === true ? "danger" : "primary"}
|
||||
onClick={() => changeStatus(record?.id, record?.isActive)}
|
||||
>
|
||||
{record?.isActive === true ? "Inactive" : "Active"}
|
||||
</Button>
|
||||
{store.authentication.userData.role === ('Admin' && 'Supervisor') && <Button
|
||||
</Button>}
|
||||
<Button
|
||||
onClick={() => {
|
||||
setDestination(record?.id);
|
||||
console.log(record?.id);
|
||||
|
@ -179,8 +179,8 @@ export const Membership = observer(() => {
|
|||
}}
|
||||
>
|
||||
<DownloadOutlined/> Top Up Saldo
|
||||
</Button>}
|
||||
<Button
|
||||
</Button>
|
||||
{store.authentication.userData.role === "Admin" && <Button
|
||||
onClick={() => {
|
||||
let record2 = record;
|
||||
delete record2.password;
|
||||
|
@ -194,8 +194,8 @@ export const Membership = observer(() => {
|
|||
}}
|
||||
>
|
||||
Edit
|
||||
</Button>
|
||||
<Button
|
||||
</Button>}
|
||||
{store.authentication.userData.role === "Admin" && <Button
|
||||
onClick={() => {
|
||||
let record2 = record;
|
||||
delete record2.password;
|
||||
|
@ -209,7 +209,7 @@ export const Membership = observer(() => {
|
|||
}}
|
||||
>
|
||||
Ganti Password
|
||||
</Button>
|
||||
</Button>}
|
||||
<Button
|
||||
onClick={async () => {
|
||||
await store.transaction.getDataHistoryTopUp(record.id)
|
||||
|
|
Loading…
Reference in New Issue
Block a user