mirror of
https://github.com/ant-design/ant-design.git
synced 2024-11-25 03:29:59 +08:00
chore: remove experimental warning (#38061)
* chore: remove experimental warning * chore: code clean
This commit is contained in:
parent
25ab342af3
commit
14ace2805a
@ -7,7 +7,6 @@ import { ConfigContext } from '../../config-provider/context';
|
||||
import type { UseComponentStyleResult } from '../index';
|
||||
import { mergeToken, statisticToken, useToken } from '../index';
|
||||
import type { ComponentTokenMap, GlobalToken } from '../interface';
|
||||
import warning from '../../_util/warning';
|
||||
|
||||
export type OverrideTokenWithoutDerivative = ComponentTokenMap;
|
||||
export type OverrideComponent = keyof OverrideTokenWithoutDerivative;
|
||||
@ -48,19 +47,6 @@ export default function genComponentStyleHook<ComponentName extends OverrideComp
|
||||
const { getPrefixCls, iconPrefixCls } = useContext(ConfigContext);
|
||||
const rootPrefixCls = getPrefixCls();
|
||||
|
||||
if (process.env.NODE_ENV !== 'production' && process.env.NODE_ENV !== 'test') {
|
||||
/* istanbul ignore next */
|
||||
warning(
|
||||
false,
|
||||
'Next',
|
||||
'\n\nYou are using dev version, ' +
|
||||
'which is used for validating and may not same as final release version.\n\n' +
|
||||
'DO NOT USE IN YOUR PRODUCTION!\n\n' +
|
||||
'Ref:#33862 - What is in experimental?\n' +
|
||||
'https://github.com/ant-design/ant-design/issues/33862#user-content-alpha-offset',
|
||||
);
|
||||
}
|
||||
|
||||
// Generate style for all a tags in antd component.
|
||||
useStyleRegister({ theme, token, hashId, path: ['Shared', rootPrefixCls] }, () => [
|
||||
{
|
||||
|
@ -24,6 +24,7 @@
|
||||
img {
|
||||
height: 32px;
|
||||
margin-right: 12px;
|
||||
vertical-align: middle;
|
||||
|
||||
.ant-row-rtl & {
|
||||
margin-right: 0;
|
||||
|
Loading…
Reference in New Issue
Block a user