2024-05-13 14:16:16: merge [main:4f88d86ea2ec3d29ae7282a24b25fd132eb9406e];
This commit is contained in:
1 parent
739a9a3a4b
commit
98ad434b36
24 files changed
+141
-98
No files matched your search
@@ -6,6 +6,7 @@ import {
|
||||
ProfileOutlined
|
||||
} from '@ant-design/icons'
|
||||
import { ConfigProvider, Layout, Menu, Spin } from 'antd'
|
||||
import type { MenuProps } from 'antd'
|
||||
import { useContext, useEffect, useState } from 'react'
|
||||
import { Navigate, Outlet, useLocation, useNavigate } from 'react-router-dom'
|
||||
|
||||
@@ -166,7 +167,7 @@ const LayoutComponent = () => {
|
||||
}
|
||||
}, [location])
|
||||
|
||||
const handlerOnClickMenu = ({ key }: any): void => {
|
||||
const handlerOnClickMenu: MenuProps['onClick'] = ({ key }): void => {
|
||||
switch (key) {
|
||||
case MenuItemKeysType.logout: {
|
||||
logoutUser()
|
||||
|
||||
Reference in new issue
Block a user