MSP-3229 replace part of 'any'

This commit is contained in:
Anastasiia committed 2024-05-13 11:16:26 +03:00
1 parent 1b5570ad0d
commit 775062a509
4 files changed
+5 -4

No files matched your search

+2 -1
View File
@@ -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()