Disable logout button in call

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

View file

@ -30,10 +30,12 @@
.menuItem.focused:first-child, .menuItem.focused:first-child,
.menuItem:hover:first-child { .menuItem:hover:first-child {
border-radius: 8px 8px 0 0; border-top-left-radius: 8px;
border-top-right-radius: 8px;
} }
.menuItem.focused:last-child, .menuItem.focused:last-child,
.menuItem:hover:last-child { .menuItem:hover:last-child {
border-radius: 0 0 8px 8px; border-bottom-left-radius: 8px;
border-bottom-right-radius: 8px;
} }

View file

@ -438,7 +438,7 @@ function InRoomView({
</LeftNav> </LeftNav>
<RightNav> <RightNav>
<GridLayoutMenu layout={layout} setLayout={setLayout} /> <GridLayoutMenu layout={layout} setLayout={setLayout} />
<UserMenu /> <UserMenu disableLogout />
</RightNav> </RightNav>
</Header> </Header>
{items.length === 0 ? ( {items.length === 0 ? (

View file

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