mirror of
https://github.com/ant-design/ant-design.git
synced 2025-01-18 06:03:38 +08:00
chore: remove warnings from site code (#43118)
* chore: remove / from old version url * chore: remove dev warning
This commit is contained in:
parent
9c4b20d5eb
commit
4ef820fc49
@ -19,7 +19,7 @@ const useStyle = () => {
|
||||
transition: all ${token.motionDurationFast};
|
||||
display: inline-block;
|
||||
|
||||
& > input[type="radio"] {
|
||||
& > input[type='radio'] {
|
||||
width: 0;
|
||||
height: 0;
|
||||
opacity: 0;
|
||||
@ -138,7 +138,11 @@ export default function ThemeColorPicker({ value, onChange }: RadiusPickerProps)
|
||||
|
||||
if (picker) {
|
||||
colorNode = (
|
||||
<DebouncedColorPicker value={value || ''} onChange={onChange}>
|
||||
<DebouncedColorPicker
|
||||
key={`colorpicker-${value}`}
|
||||
value={value || ''}
|
||||
onChange={onChange}
|
||||
>
|
||||
{colorNode}
|
||||
</DebouncedColorPicker>
|
||||
);
|
||||
|
@ -377,8 +377,8 @@ export default function Theme() {
|
||||
},
|
||||
Menu: isLight
|
||||
? {
|
||||
colorItemBg: 'transparent',
|
||||
colorSubItemBg: 'transparent',
|
||||
itemBg: 'transparent',
|
||||
subMenuItemBg: 'transparent',
|
||||
colorActiveBarWidth: 0,
|
||||
}
|
||||
: {
|
||||
|
@ -299,7 +299,7 @@ const Header: React.FC = () => {
|
||||
defaultValue={pkg.version}
|
||||
onChange={handleVersionChange}
|
||||
dropdownStyle={getDropdownStyle}
|
||||
dropdownMatchSelectWidth={false}
|
||||
popupMatchSelectWidth={false}
|
||||
getPopupContainer={(trigger) => trigger.parentNode}
|
||||
options={versionOptions}
|
||||
/>,
|
||||
|
@ -1,11 +1,11 @@
|
||||
import React, { useContext } from 'react';
|
||||
import { useSidebarData } from 'dumi';
|
||||
import { Col, ConfigProvider, Menu } from 'antd';
|
||||
import MobileMenu from 'rc-drawer';
|
||||
import { css } from '@emotion/react';
|
||||
import SiteContext from '../SiteContext';
|
||||
import { Col, ConfigProvider, Menu } from 'antd';
|
||||
import { useSidebarData } from 'dumi';
|
||||
import MobileMenu from 'rc-drawer';
|
||||
import React, { useContext } from 'react';
|
||||
import useMenu from '../../../hooks/useMenu';
|
||||
import useSiteToken from '../../../hooks/useSiteToken';
|
||||
import SiteContext from '../SiteContext';
|
||||
|
||||
const useStyle = () => {
|
||||
const { token } = useSiteToken();
|
||||
@ -134,7 +134,7 @@ const Sidebar: React.FC = () => {
|
||||
} = useSiteToken();
|
||||
|
||||
const menuChild = (
|
||||
<ConfigProvider theme={{ components: { Menu: { colorItemBg: colorBgContainer } } }}>
|
||||
<ConfigProvider theme={{ components: { Menu: { itemBg: colorBgContainer } } }}>
|
||||
<Menu
|
||||
items={menuItems}
|
||||
inlineIndent={30}
|
||||
|
Loading…
Reference in New Issue
Block a user