11import classNames from 'classnames' ;
22import React from 'react' ;
3+ import deprecated from 'react-prop-types/lib/deprecated' ;
34import elementType from 'react-prop-types/lib/elementType' ;
45
56import BootstrapMixin from './BootstrapMixin' ;
67import Grid from './Grid' ;
78import NavBrand from './NavBrand' ;
89
910import createChainedFunction from './utils/createChainedFunction' ;
10- import deprecationWarning from './utils/deprecationWarning' ;
1111import ValidComponentChildren from './utils/ValidComponentChildren' ;
1212
1313const Navbar = React . createClass ( {
@@ -24,7 +24,7 @@ const Navbar = React.createClass({
2424 * You can use a custom element for this component
2525 */
2626 componentClass : elementType ,
27- brand : React . PropTypes . node ,
27+ brand : deprecated ( React . PropTypes . node , 'Use the `NavBrand` component.' ) ,
2828 toggleButton : React . PropTypes . node ,
2929 toggleNavKey : React . PropTypes . oneOfType ( [
3030 React . PropTypes . string ,
@@ -61,13 +61,6 @@ const Navbar = React.createClass({
6161 return ! this . _isChanging ;
6262 } ,
6363
64- componentWillMount ( ) {
65- // TODO: Use the `deprecated` PropType once we're on React 0.14.
66- if ( this . props . brand ) {
67- deprecationWarning ( 'Navbar brand attribute' , 'NavBrand Component' ) ;
68- }
69- } ,
70-
7164 handleToggle ( ) {
7265 if ( this . props . onToggle ) {
7366 this . _isChanging = true ;
0 commit comments