diff --git a/src/components/NavBar/index.jsx b/src/components/NavBar/index.jsx index c093665..60e1be6 100644 --- a/src/components/NavBar/index.jsx +++ b/src/components/NavBar/index.jsx @@ -92,7 +92,10 @@ const NavBar = ({ hideSwitchTools }) => { auth.profile && ( {hideSwitchTools ? null : } - + ) ) : ( @@ -110,7 +113,10 @@ const NavBar = ({ hideSwitchTools }) => { auth.profile && ( {hideSwitchTools ? null : } - + ) ) : ( diff --git a/src/components/UserMenu/index.jsx b/src/components/UserMenu/index.jsx index 6a72edb..e777b41 100644 --- a/src/components/UserMenu/index.jsx +++ b/src/components/UserMenu/index.jsx @@ -5,6 +5,7 @@ */ import React, { useState, useCallback, Fragment } from "react"; import { Link } from "@reach/router"; +import PropTypes from "prop-types"; import Avatar from "../Avatar"; import cn from "classnames"; import OutsideClickHandler from "react-outside-click-handler"; @@ -12,7 +13,7 @@ import { logout, getLogoutUrl } from "../../utils"; import "./styles.css"; import { useMediaQuery } from "react-responsive"; -const UserMenu = ({ profile }) => { +const UserMenu = ({ profile, hideSwitchTools }) => { const [isOpenMenu, setIsOpenMenu] = useState(false); const closeMenu = useCallback(() => { @@ -63,11 +64,16 @@ const UserMenu = ({ profile }) => {