Skip to content

Commit

Permalink
migrate from React.PropTypes (#418)
Browse files Browse the repository at this point in the history
  • Loading branch information
gabrielkunkel authored and coryhouse committed Apr 10, 2017
1 parent cf69b17 commit 042a9b9
Show file tree
Hide file tree
Showing 8 changed files with 212 additions and 200 deletions.
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,7 @@
"open": "0.0.5",
"postcss-loader": "1.2.1",
"prompt": "1.0.0",
"prop-types": "^15.5.6",
"react-addons-test-utils": "15.4.1",
"react-hot-loader": "3.0.0-beta.6",
"redux-immutable-state-invariant": "1.2.4",
Expand Down
3 changes: 2 additions & 1 deletion src/components/App.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import React, { PropTypes } from 'react';
import React from 'react';
import PropTypes from 'prop-types';
import { Link, IndexLink } from 'react-router';

// This is a class-based component because the current
Expand Down
3 changes: 2 additions & 1 deletion src/components/FuelSavingsForm.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import React, {PropTypes} from 'react';
import React from 'react';
import PropTypes from 'prop-types';
import FuelSavingsResults from './FuelSavingsResults';
import FuelSavingsTextInput from './FuelSavingsTextInput';

Expand Down
3 changes: 2 additions & 1 deletion src/components/FuelSavingsResults.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import React, {PropTypes} from 'react';
import React from 'react';
import PropTypes from 'prop-types';
import NumberFormatter from '../utils/numberFormatter';

// This is a stateless functional component. (Also known as pure or dumb component)
Expand Down
3 changes: 2 additions & 1 deletion src/components/FuelSavingsTextInput.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import React, {PropTypes} from 'react';
import React from 'react';
import PropTypes from 'prop-types';

const FuelSavingsTextInput = (props) => {
const handleChange = (e) => {
Expand Down
3 changes: 2 additions & 1 deletion src/components/Root.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import React, { Component, PropTypes } from 'react';
import React, { Component } from 'react';
import PropTypes from 'prop-types';
import { Provider } from 'react-redux';
import routes from '../routes';
import { Router } from 'react-router';
Expand Down
3 changes: 2 additions & 1 deletion src/containers/FuelSavingsPage.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import React, {PropTypes} from 'react';
import React from 'react';
import PropTypes from 'prop-types';
import {connect} from 'react-redux';
import {bindActionCreators} from 'redux';
import * as actions from '../actions/fuelSavingsActions';
Expand Down
Loading

0 comments on commit 042a9b9

Please sign in to comment.