Skip to content

Commit

Permalink
destructure proptypes
Browse files Browse the repository at this point in the history
  • Loading branch information
echenley committed Oct 19, 2015
1 parent e25e83c commit 9422bd5
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 11 deletions.
4 changes: 2 additions & 2 deletions src/js/App.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -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';

Expand All @@ -27,7 +27,7 @@ import Icon from './components/Icon';
const App = React.createClass({

propTypes: {
children: React.PropTypes.object
children: PropTypes.object
},

mixins: [
Expand Down
6 changes: 3 additions & 3 deletions src/js/components/NewPost.jsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
'use strict';

import React from 'react';
import React, { PropTypes } from 'react';
import { History } from 'react-router';
import cx from 'classnames';

Expand All @@ -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 ],
Expand Down
4 changes: 2 additions & 2 deletions src/js/views/Posts.jsx
Original file line number Diff line number Diff line change
@@ -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';
Expand All @@ -15,7 +15,7 @@ import Link from 'react-router/lib/Link';
const Posts = React.createClass({

propTypes: {
params: React.PropTypes.object
params: PropTypes.object
},

mixins: [
Expand Down
4 changes: 2 additions & 2 deletions src/js/views/Profile.jsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
'use strict';

import React from 'react';
import React, { PropTypes } from 'react';
import Reflux from 'reflux';
import { History } from 'react-router';

Expand All @@ -16,7 +16,7 @@ import Comment from '../components/Comment';
const Profile = React.createClass({

propTypes: {
params: React.PropTypes.object
params: PropTypes.object
},

mixins: [
Expand Down
4 changes: 2 additions & 2 deletions src/js/views/Single.jsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
'use strict';

import React from 'react';
import React, { PropTypes } from 'react';
import Reflux from 'reflux';
import { History } from 'react-router';

Expand All @@ -17,7 +17,7 @@ import pluralize from '../util/pluralize';
const SinglePost = React.createClass({

propTypes: {
params: React.PropTypes.object
params: PropTypes.object
},

mixins: [
Expand Down

0 comments on commit 9422bd5

Please sign in to comment.