Skip to content

Commit

Permalink
Dependency errors caused by update behavior (#143)
Browse files Browse the repository at this point in the history
  • Loading branch information
aide-cloud authored Jul 4, 2024
1 parent 4cfe041 commit d5231a0
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 4 deletions.
3 changes: 1 addition & 2 deletions web/src/components/PromLayout/SiderMenu/SiderMenu.tsx
Original file line number Diff line number Diff line change
@@ -1,13 +1,12 @@
import { useContext, FC, useState, useEffect } from 'react'

import type { ItemType } from 'antd/es/menu/hooks/useItems'

import { Button, Menu } from 'antd'
import { useLocation, useNavigate } from 'react-router-dom'
import { GlobalContext } from '@/context'

import styles from './style/index.module.less'
import { LeftOutlined, RightOutlined } from '@ant-design/icons'
import { ItemType } from 'antd/es/menu/interface'

export type SiderMenuProps = {
items?: ItemType[]
Expand Down
2 changes: 1 addition & 1 deletion web/src/context.tsx
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import { createContext } from 'react'
import { SizeType } from 'antd/es/config-provider/SizeContext'
import type { ItemType } from 'antd/es/menu/hooks/useItems'
import type { SpaceType } from './pages'
import { UserListItem } from './apis/home/system/user/types'
import { breadcrumbNameType } from './pages/menus'
import { ItemType } from 'antd/es/menu/interface'

export type ThemeType = 'light' | 'dark'

Expand Down
2 changes: 1 addition & 1 deletion web/src/pages/menus.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import type { ItemType } from 'antd/es/menu/hooks/useItems'
import { IconFont } from '@/components/IconFont/IconFont'
import { ItemType } from 'antd/es/menu/interface'

export const defaultMenuItems: ItemType[] = [
{
Expand Down

0 comments on commit d5231a0

Please sign in to comment.