|
@ -1,11 +1,11 @@ |
|
|
import React, { useContext } from 'react'; |
|
|
import { css } from '@emotion/react'; |
|
|
import { useSidebarData } from 'dumi'; |
|
|
|
|
|
import { Col, ConfigProvider, Menu } from 'antd'; |
|
|
import { Col, ConfigProvider, Menu } from 'antd'; |
|
|
|
|
|
import { useSidebarData } from 'dumi'; |
|
|
import MobileMenu from 'rc-drawer'; |
|
|
import MobileMenu from 'rc-drawer'; |
|
|
import { css } from '@emotion/react'; |
|
|
import React, { useContext } from 'react'; |
|
|
import SiteContext from '../SiteContext'; |
|
|
|
|
|
import useMenu from '../../../hooks/useMenu'; |
|
|
import useMenu from '../../../hooks/useMenu'; |
|
|
import useSiteToken from '../../../hooks/useSiteToken'; |
|
|
import useSiteToken from '../../../hooks/useSiteToken'; |
|
|
|
|
|
import SiteContext from '../SiteContext'; |
|
|
|
|
|
|
|
|
const useStyle = () => { |
|
|
const useStyle = () => { |
|
|
const { token } = useSiteToken(); |
|
|
const { token } = useSiteToken(); |
|
@ -134,7 +134,7 @@ const Sidebar: React.FC = () => { |
|
|
} = useSiteToken(); |
|
|
} = useSiteToken(); |
|
|
|
|
|
|
|
|
const menuChild = ( |
|
|
const menuChild = ( |
|
|
<ConfigProvider theme={{ components: { Menu: { colorItemBg: colorBgContainer } } }}> |
|
|
<ConfigProvider theme={{ components: { Menu: { itemBg: colorBgContainer } } }}> |
|
|
<Menu |
|
|
<Menu |
|
|
items={menuItems} |
|
|
items={menuItems} |
|
|
inlineIndent={30} |
|
|
inlineIndent={30} |
|
|