mirror of
https://github.com/maelgangloff/domain-watchdog.git
synced 2025-12-29 16:15:04 +00:00
style: import type
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
import {ItemType} from 'antd/lib/menu/interface'
|
||||
import type {ItemType} from 'antd/lib/menu/interface'
|
||||
import {t} from 'ttag'
|
||||
import {
|
||||
AimOutlined,
|
||||
@@ -22,6 +22,7 @@ export function Sider({isAuthenticated}: { isAuthenticated: boolean }) {
|
||||
const navigate = useNavigate()
|
||||
const location = useLocation()
|
||||
|
||||
|
||||
const menuItems: ItemType[] = [
|
||||
{
|
||||
key: '/home',
|
||||
@@ -129,13 +130,11 @@ export function Sider({isAuthenticated}: { isAuthenticated: boolean }) {
|
||||
})
|
||||
}
|
||||
|
||||
return (
|
||||
<Menu
|
||||
defaultOpenKeys={['search', 'info', 'tracking', 'doc']}
|
||||
selectedKeys={[location.pathname.includes('/search/domain') ? '/search/domain' : location.pathname]}
|
||||
mode='inline'
|
||||
theme='dark'
|
||||
items={menuItems}
|
||||
/>
|
||||
)
|
||||
return <Menu
|
||||
defaultOpenKeys={['search', 'info', 'tracking', 'doc']}
|
||||
selectedKeys={[location.pathname.includes('/search/domain') ? '/search/domain' : location.pathname]}
|
||||
mode='inline'
|
||||
theme='dark'
|
||||
items={menuItems}
|
||||
/>
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user