Disable logout button in call

This commit is contained in:
Robert Long
2021-12-15 10:25:18 -08:00
parent b6ee7cfefc
commit 3fd90915d8
3 changed files with 7 additions and 5 deletions

View File

@@ -13,7 +13,7 @@ import { useModalTriggerState } from "./Modal";
import { ProfileModal } from "./ProfileModal";
import { Tooltip, TooltipTrigger } from "./Tooltip";
export function UserMenu() {
export function UserMenu({ disableLogout }) {
const location = useLocation();
const history = useHistory();
const { isAuthenticated, isGuest, logout, userName, client } = useClient();
@@ -64,7 +64,7 @@ export function UserMenu() {
icon: LoginIcon,
}
);
} else {
} else if (!disableLogout) {
arr.push({
key: "logout",
label: "Sign Out",