File tree Expand file tree Collapse file tree 5 files changed +16
-11
lines changed
Expand file tree Collapse file tree 5 files changed +16
-11
lines changed Original file line number Diff line number Diff line change 44 "private" : true ,
55 "homepage" : " http://ahfarmer.github.io/calculator" ,
66 "devDependencies" : {
7- "gh-pages" : " ^0.11 .0" ,
8- "react-scripts" : " 0.4.1 "
7+ "gh-pages" : " ^1.1 .0" ,
8+ "react-scripts" : " ^1.0.17 "
99 },
1010 "dependencies" : {
11- "big.js" : " ^3.1 .3" ,
11+ "big.js" : " ^5.0 .3" ,
1212 "github-fork-ribbon-css" : " ^0.2.1" ,
13- "react" : " ^15.3.1 " ,
14- "react-dom" : " ^15.3.1 "
13+ "react" : " ^16.2.0 " ,
14+ "react-dom" : " ^16.2.0 "
1515 },
1616 "scripts" : {
1717 "start" : " react-scripts start" ,
File renamed without changes.
Original file line number Diff line number Diff line change 11import React from 'react' ;
2+ import PropTypes from 'prop-types' ;
23import './Button.css' ;
34
45class Button extends React . Component {
@@ -29,9 +30,9 @@ class Button extends React.Component {
2930 }
3031}
3132Button . propTypes = {
32- name : React . PropTypes . string ,
33- orange : React . PropTypes . bool ,
34- wide : React . PropTypes . bool ,
35- clickHandler : React . PropTypes . func ,
33+ name : PropTypes . string ,
34+ orange : PropTypes . bool ,
35+ wide : PropTypes . bool ,
36+ clickHandler : PropTypes . func ,
3637} ;
3738export default Button ;
Original file line number Diff line number Diff line change 11import Button from './Button' ;
22import React from 'react' ;
3+ import PropTypes from 'prop-types' ;
4+
35import './ButtonPanel.css' ;
46
57class ButtonPanel extends React . Component {
@@ -44,6 +46,6 @@ class ButtonPanel extends React.Component {
4446 }
4547}
4648ButtonPanel . propTypes = {
47- clickHandler : React . PropTypes . func ,
49+ clickHandler : PropTypes . func ,
4850} ;
4951export default ButtonPanel ;
Original file line number Diff line number Diff line change 11import React from 'react' ;
2+ import PropTypes from 'prop-types' ;
3+
24import './Display.css' ;
35
46class Display extends React . Component {
@@ -13,6 +15,6 @@ class Display extends React.Component {
1315 }
1416}
1517Display . propTypes = {
16- value : React . PropTypes . string ,
18+ value : PropTypes . string ,
1719} ;
1820export default Display ;
You can’t perform that action at this time.
0 commit comments