diff --git a/react/src/components/HeaderMenu/HeaderMenu.tsx b/react/src/components/HeaderMenu/HeaderMenu.tsx index 90a64589c..aef4c5ebf 100644 --- a/react/src/components/HeaderMenu/HeaderMenu.tsx +++ b/react/src/components/HeaderMenu/HeaderMenu.tsx @@ -37,9 +37,7 @@ export interface LoginOrUserMenuButtonProps extends UserMenuProps { export interface MenuItemsGroupProps extends MenuItemsGroupData {} -export interface MenuItemsGroupsProps - extends LoginOrUserMenuButtonProps, - LayoutProps { +export interface MenuItemsGroupsProps extends LoginOrUserMenuButtonProps, LayoutProps { menuItemsGroups: MenuItemsGroupData[]; } diff --git a/react/src/components/HeaderMenu/HeaderMenuContainer.tsx b/react/src/components/HeaderMenu/HeaderMenuContainer.tsx index 06088a087..1c8cf2d1a 100644 --- a/react/src/components/HeaderMenu/HeaderMenuContainer.tsx +++ b/react/src/components/HeaderMenu/HeaderMenuContainer.tsx @@ -1,7 +1,6 @@ import { useContext, useMemo, useState } from "react"; import { useAuth0 } from "@auth0/auth0-react"; import HeaderMenu, { MenuItemsGroupData } from "./HeaderMenu"; -import { useDisclosure } from "@chakra-ui/react"; import { GlobalPreferencesContext } from "providers/GlobalPreferencesProvider"; import QrReaderOverlay from "components/QrReaderOverlay/QrReaderOverlay"; import { qrReaderOverlayVar } from "queries/cache"; @@ -22,7 +21,10 @@ const HeaderMenuContainer = () => { link: `${process.env.REACT_APP_OLD_APP_BASE_URL}/mobile.php`, name: "Go to classic mobile", }, - { link: `${process.env.REACT_APP_OLD_APP_BASE_URL}/`, name: "Go to classic desktop" }, + { + link: `${process.env.REACT_APP_OLD_APP_BASE_URL}/`, + name: "Go to classic desktop", + }, ], }, // { @@ -94,11 +96,11 @@ const HeaderMenuContainer = () => { menuItemsGroups={menuItems} currentActiveBaseId={baseId} availableBases={globalPreferences.availableBases} - onClickScanQrCode={() => qrReaderOverlayVar({isOpen: true})} + onClickScanQrCode={() => qrReaderOverlayVar({ isOpen: true })} /> qrReaderOverlayVar({isOpen: false})} + onClose={() => qrReaderOverlayVar({ isOpen: false })} /> ); diff --git a/react/src/components/HeaderMenu/HeaderMenuMobile.tsx b/react/src/components/HeaderMenu/HeaderMenuMobile.tsx index bb8cda628..44daa19f0 100644 --- a/react/src/components/HeaderMenu/HeaderMenuMobile.tsx +++ b/react/src/components/HeaderMenu/HeaderMenuMobile.tsx @@ -59,12 +59,13 @@ const LoginOrUserMenuButtonMobile = ({ const { isOpen, onToggle } = useDisclosure(); return isAuthenticated ? ( - + Logout {user?.email} ) : ( - +