Skip to content

Commit 655b9ea

Browse files
committed
⬆️ update packages to the latest versions
1 parent 2f42dc3 commit 655b9ea

File tree

5 files changed

+16
-11
lines changed

5 files changed

+16
-11
lines changed

package.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,14 @@
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.

src/component/Button.js

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import React from 'react';
2+
import PropTypes from 'prop-types';
23
import './Button.css';
34

45
class Button extends React.Component {
@@ -29,9 +30,9 @@ class Button extends React.Component {
2930
}
3031
}
3132
Button.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
};
3738
export default Button;

src/component/ButtonPanel.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
import Button from './Button';
22
import React from 'react';
3+
import PropTypes from 'prop-types';
4+
35
import './ButtonPanel.css';
46

57
class ButtonPanel extends React.Component {
@@ -44,6 +46,6 @@ class ButtonPanel extends React.Component {
4446
}
4547
}
4648
ButtonPanel.propTypes = {
47-
clickHandler: React.PropTypes.func,
49+
clickHandler: PropTypes.func,
4850
};
4951
export default ButtonPanel;

src/component/Display.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
import React from 'react';
2+
import PropTypes from 'prop-types';
3+
24
import './Display.css';
35

46
class Display extends React.Component {
@@ -13,6 +15,6 @@ class Display extends React.Component {
1315
}
1416
}
1517
Display.propTypes = {
16-
value: React.PropTypes.string,
18+
value: PropTypes.string,
1719
};
1820
export default Display;

0 commit comments

Comments
 (0)