Skip to content

Commit 6339abd

Browse files
Added prop-types package to replace React.PropTypes
1 parent 4d43bd0 commit 6339abd

19 files changed

+284
-272
lines changed

docs/iframe.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
<body>
1717
<div id="root"></div>
1818
<div id="error-display"></div>
19-
<script src="static/preview.b42f6c4449dd7e2bc05f.bundle.js"></script>
19+
<script src="static/preview.816115d41c5598c3b9d7.bundle.js"></script>
2020
</body>
2121
</html>
2222

docs/index.html

+2-2
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<head>
55
<meta charset="utf-8">
66
<meta name="viewport" content="width=device-width, initial-scale=1">
7-
<meta name="storybook-version" content="2.34.0">
7+
<meta name="storybook-version" content="2.35.3">
88
<title>React Storybook</title>
99
<style>
1010
/*
@@ -38,7 +38,7 @@
3838
</head>
3939
<body style="margin: 0;">
4040
<div id="root"></div>
41-
<script src="static/manager.064a51e0ff771a60cbf8.bundle.js"></script>
41+
<script src="static/manager.6ad221aebe7d1fa93ef3.bundle.js"></script>
4242
</body>
4343
</html>
4444

docs/static/manager.064a51e0ff771a60cbf8.bundle.js

-32
This file was deleted.

docs/static/manager.064a51e0ff771a60cbf8.bundle.js.map

-1
This file was deleted.

docs/static/manager.6ad221aebe7d1fa93ef3.bundle.js

+34
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docs/static/manager.6ad221aebe7d1fa93ef3.bundle.js.map

+1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docs/static/preview.816115d41c5598c3b9d7.bundle.js

+30
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docs/static/preview.816115d41c5598c3b9d7.bundle.js.map

+1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docs/static/preview.b42f6c4449dd7e2bc05f.bundle.js

-30
This file was deleted.

docs/static/preview.b42f6c4449dd7e2bc05f.bundle.js.map

-1
This file was deleted.

package.json

+4-3
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,8 @@
4242
"eslint": "^3.3.0",
4343
"express": "^4.14.0",
4444
"jest": "^19.0.1",
45-
"react": "^15.3.0",
45+
"prop-types": "^15.5.9",
46+
"react": "^15.5.4",
4647
"react-addons-test-utils": "^15.4.2",
4748
"react-dom": "^15.3.0",
4849
"react-hot-loader": "^3.0.0-beta.6",
@@ -55,8 +56,8 @@
5556
"react": "^0.14.0 || ^15.3.0"
5657
},
5758
"dependencies": {
58-
"radium": "^0.18.1",
59-
"react-autosuggest": "^6.0.3",
59+
"radium": "^0.18.2",
60+
"react-autosuggest": "^9.0.1",
6061
"react-themeable": "^1.1.0"
6162
}
6263
}

site/bundle.js

+15-11
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

site/bundle.js.map

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

site/src/CustomChip.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import React, { Component, PropTypes } from 'react';
1+
import React, { Component } from 'react';
22
import Radium from 'radium';
33

44
class CustomChip extends Component {

src/Chip.js

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
import React, { PropTypes } from 'react'
1+
import React from 'react'
2+
import PropTypes from 'prop-types';
23
import Radium from 'radium';
34
import themeable from 'react-themeable';
45
import { chipTheme } from './theme';

src/Chips.js

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
import React, { Component, PropTypes } from 'react';
1+
import React, { Component } from 'react';
2+
import PropTypes from 'prop-types';
23
import Autosuggest from 'react-autosuggest';
34
import Radium from 'radium';
45
import themeable from 'react-themeable';

stories/CustomChip.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import React, { Component, PropTypes } from 'react';
1+
import React, { Component } from 'react';
22
import Radium from 'radium';
33

44
class CustomChip extends Component {

webpack.config.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ var path = require('path');
22
var webpack = require('webpack');
33

44
module.exports = {
5-
devtool: 'cheap-module-source-map',
5+
devtool: 'eval',
66
entry: [
77
'react-hot-loader/patch',
88
'webpack-hot-middleware/client',

0 commit comments

Comments
 (0)