diff --git a/src/drop-down-icon.jsx b/src/drop-down-icon.jsx index cca0dd76bbdf73..f40cba98e98fa7 100644 --- a/src/drop-down-icon.jsx +++ b/src/drop-down-icon.jsx @@ -6,6 +6,7 @@ import FontIcon from './font-icon'; import Menu from './menu/menu'; import DefaultRawTheme from './styles/raw-themes/light-raw-theme'; import ThemeManager from './styles/theme-manager'; +import warning from 'warning'; const DropDownIcon = React.createClass({ @@ -42,6 +43,9 @@ const DropDownIcon = React.createClass({ }, getInitialState() { + warning(false, 'DropDownIcon has been deprecated and will be removed in an upcoming verion.' + + ' Please use IconMenu instead.'); + return { open: false, muiTheme: this.context.muiTheme ? this.context.muiTheme : ThemeManager.getMuiTheme(DefaultRawTheme), @@ -54,13 +58,6 @@ const DropDownIcon = React.createClass({ }; }, - componentDidMount() { - // This component can be deprecated once ./menu/menu has been deprecated. - // if (process.env.NODE_ENV !== 'production') { - // console.warn('DropDownIcon has been deprecated. Use IconMenu instead.'); - // } - }, - //to update theme inside state whenever a new theme is passed down //from the parent / owner using context componentWillReceiveProps(nextProps, nextContext) {