changed setInfoPanelVisible to setInfoPanelIsVisible in form people store and accounts contextOptions

This commit is contained in:
mushka 2022-09-09 13:19:43 +03:00
parent 0904fa1da1
commit fcb0f3e85f
2 changed files with 6 additions and 7 deletions

View File

@ -162,7 +162,7 @@ class AccountsContextOptionsStore {
const { isAdmin, isOwner } = this.authStore.userStore.user;
const { setVisible, isVisible } = this.peopleStore.infoPanelStore;
const { setIsVisible, isVisible } = this.peopleStore.infoPanelStore;
const options = [];
@ -212,7 +212,7 @@ class AccountsContextOptionsStore {
key: "cm-info",
label: t("Common:Info"),
disabled: isVisible,
onClick: setVisible,
onClick: () => setIsVisible(true),
icon: "images/info.react.svg",
},
{
@ -375,9 +375,8 @@ class AccountsContextOptionsStore {
};
onDetailsClick = () => {
const { setVisible } = this.peopleStore.infoPanelStore;
setVisible();
const { setIsVisible } = this.peopleStore.infoPanelStore;
setIsVisible(true);
};
onInviteAgainClick = (t, item) => {

View File

@ -153,7 +153,7 @@ class PeopleStore {
const { isAdmin, isOwner } = this.authStore.userStore.user;
const { setVisible, isVisible } = this.infoPanelStore;
const { setIsVisible, isVisible } = this.infoPanelStore;
const options = [];
@ -204,7 +204,7 @@ class PeopleStore {
key: "info",
label: t("Common:Info"),
disabled: isVisible,
onClick: setVisible,
onClick: () => setIsVisible(true),
iconUrl: "images/info.react.svg",
},
{