Javascript – Rendered more hooks than during the previous render. about hide or show menu items
import navigationConfig from "configs/NavigationConfig"; import useAuth from "hooks/useAuth"; import useUserType from "hooks/useType"; const { SubMenu } = Menu; const { useBreakpoint } = Grid; const setLocale = (isLocaleOn, localeKey) => isLocaleOn ? <IntlMessage id={localeKey} /> : localeKey.toString(); const setDefaultOpen =…