From ab15b3a84c27784196f0243be7701ff20e7a0e0c Mon Sep 17 00:00:00 2001 From: ycjcl868 <45808948@qq.com> Date: Fri, 22 Nov 2019 15:44:10 +0800 Subject: [PATCH] fix: remove danger warning --- components/button/button.tsx | 6 ------ 1 file changed, 6 deletions(-) diff --git a/components/button/button.tsx b/components/button/button.tsx index 6b9477dd96..fbe31d8886 100644 --- a/components/button/button.tsx +++ b/components/button/button.tsx @@ -9,7 +9,6 @@ import omit from 'omit.js'; import Group from './button-group'; import { ConfigConsumer, ConfigConsumerProps } from '../config-provider'; import Wave from '../_util/wave'; -import warning from '../_util/warning'; import { Omit, tuple } from '../_util/type'; const rxTwoCNChar = /^[\u4e00-\u9fa5]{2}$/; @@ -151,11 +150,6 @@ class Button extends React.Component { componentDidMount() { this.fixTwoCNChar(); - warning( - !('type' in this.props && this.props.type === 'danger'), - 'Button', - '`type="danger"` is deprecated, please use `danger` instead.', - ); } componentDidUpdate(prevProps: ButtonProps) {