11import React from 'react' ;
2+ import createClass from 'create-react-class' ;
3+ import PropTypes from 'prop-types' ;
24import Select from 'react-select' ;
35import Gravatar from 'react-gravatar' ;
46
57const USERS = require ( '../data/users' ) ;
68const GRAVATAR_SIZE = 15 ;
79
8- const GravatarOption = React . createClass ( {
10+ const GravatarOption = createClass ( {
911 propTypes : {
10- children : React . PropTypes . node ,
11- className : React . PropTypes . string ,
12- isDisabled : React . PropTypes . bool ,
13- isFocused : React . PropTypes . bool ,
14- isSelected : React . PropTypes . bool ,
15- onFocus : React . PropTypes . func ,
16- onSelect : React . PropTypes . func ,
17- option : React . PropTypes . object . isRequired ,
12+ children : PropTypes . node ,
13+ className : PropTypes . string ,
14+ isDisabled : PropTypes . bool ,
15+ isFocused : PropTypes . bool ,
16+ isSelected : PropTypes . bool ,
17+ onFocus : PropTypes . func ,
18+ onSelect : PropTypes . func ,
19+ option : PropTypes . object . isRequired ,
1820 } ,
1921 handleMouseDown ( event ) {
2022 event . preventDefault ( ) ;
@@ -50,11 +52,11 @@ const GravatarOption = React.createClass({
5052 }
5153} ) ;
5254
53- const GravatarValue = React . createClass ( {
55+ const GravatarValue = createClass ( {
5456 propTypes : {
55- children : React . PropTypes . node ,
56- placeholder : React . PropTypes . string ,
57- value : React . PropTypes . object
57+ children : PropTypes . node ,
58+ placeholder : PropTypes . string ,
59+ value : PropTypes . object
5860 } ,
5961 render ( ) {
6062 var gravatarStyle = {
@@ -76,10 +78,10 @@ const GravatarValue = React.createClass({
7678 }
7779} ) ;
7880
79- const UsersField = React . createClass ( {
81+ const UsersField = createClass ( {
8082 propTypes : {
81- hint : React . PropTypes . string ,
82- label : React . PropTypes . string ,
83+ hint : PropTypes . string ,
84+ label : PropTypes . string ,
8385 } ,
8486 getInitialState ( ) {
8587 return { } ;
0 commit comments