From 9422bd5a1deb7ae0047c0f6a9a4c77acbe2a3a46 Mon Sep 17 00:00:00 2001 From: echenley Date: Mon, 19 Oct 2015 18:26:46 -0500 Subject: [PATCH] destructure proptypes --- src/js/App.jsx | 4 ++-- src/js/components/NewPost.jsx | 6 +++--- src/js/views/Posts.jsx | 4 ++-- src/js/views/Profile.jsx | 4 ++-- src/js/views/Single.jsx | 4 ++-- 5 files changed, 11 insertions(+), 11 deletions(-) diff --git a/src/js/App.jsx b/src/js/App.jsx index ede52cc..10ebd50 100644 --- a/src/js/App.jsx +++ b/src/js/App.jsx @@ -6,7 +6,7 @@ Author URI: http://henleyedition.com/ 'use strict'; -import React from 'react'; +import React, { PropTypes } from 'react'; import Reflux from 'reflux'; import { Link } from 'react-router'; @@ -27,7 +27,7 @@ import Icon from './components/Icon'; const App = React.createClass({ propTypes: { - children: React.PropTypes.object + children: PropTypes.object }, mixins: [ diff --git a/src/js/components/NewPost.jsx b/src/js/components/NewPost.jsx index ead771e..339f500 100644 --- a/src/js/components/NewPost.jsx +++ b/src/js/components/NewPost.jsx @@ -1,6 +1,6 @@ 'use strict'; -import React from 'react'; +import React, { PropTypes } from 'react'; import { History } from 'react-router'; import cx from 'classnames'; @@ -10,8 +10,8 @@ import Spinner from '../components/Spinner'; const NewPost = React.createClass({ propTypes: { - user: React.PropTypes.object, - errorMessage: React.PropTypes.string + user: PropTypes.object, + errorMessage: PropTypes.string }, mixins: [ History ], diff --git a/src/js/views/Posts.jsx b/src/js/views/Posts.jsx index 0aceee1..0faf48e 100644 --- a/src/js/views/Posts.jsx +++ b/src/js/views/Posts.jsx @@ -1,6 +1,6 @@ 'use strict'; -import React from 'react'; +import React, { PropTypes } from 'react'; import Reflux from 'reflux'; import Actions from '../actions/Actions'; import { History } from 'react-router'; @@ -15,7 +15,7 @@ import Link from 'react-router/lib/Link'; const Posts = React.createClass({ propTypes: { - params: React.PropTypes.object + params: PropTypes.object }, mixins: [ diff --git a/src/js/views/Profile.jsx b/src/js/views/Profile.jsx index fed6332..98ae2d6 100644 --- a/src/js/views/Profile.jsx +++ b/src/js/views/Profile.jsx @@ -1,6 +1,6 @@ 'use strict'; -import React from 'react'; +import React, { PropTypes } from 'react'; import Reflux from 'reflux'; import { History } from 'react-router'; @@ -16,7 +16,7 @@ import Comment from '../components/Comment'; const Profile = React.createClass({ propTypes: { - params: React.PropTypes.object + params: PropTypes.object }, mixins: [ diff --git a/src/js/views/Single.jsx b/src/js/views/Single.jsx index 61dbd1c..f6d0842 100644 --- a/src/js/views/Single.jsx +++ b/src/js/views/Single.jsx @@ -1,6 +1,6 @@ 'use strict'; -import React from 'react'; +import React, { PropTypes } from 'react'; import Reflux from 'reflux'; import { History } from 'react-router'; @@ -17,7 +17,7 @@ import pluralize from '../util/pluralize'; const SinglePost = React.createClass({ propTypes: { - params: React.PropTypes.object + params: PropTypes.object }, mixins: [