chore: remove experimental warning (#38061)

* chore: remove experimental warning

* chore: code clean
This commit is contained in:
MadCcc 2022-10-17 17:30:29 +08:00 committed by GitHub
parent 25ab342af3
commit 14ace2805a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 1 additions and 14 deletions

View File

@ -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] }, () => [
{

View File

@ -24,6 +24,7 @@
img {
height: 32px;
margin-right: 12px;
vertical-align: middle;
.ant-row-rtl & {
margin-right: 0;