Skip to content

Commit 5ae8f88

Browse files
authored
Merge pull request #34 from damusnet/proptypes-examples
Use seperated prop-types package in examples
2 parents ffbfdb6 + 64f511c commit 5ae8f88

File tree

6 files changed

+12
-6
lines changed

6 files changed

+12
-6
lines changed

examples/apps/infinite-scrolling/content.js

Lines changed: 2 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

examples/apps/responsive/button.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
import React, {PropTypes, Component} from "react";
1+
import React, {Component} from "react";
2+
import PropTypes from "prop-types";
23
import styles from "./styles";
34

45
export default class Button extends Component {

examples/apps/routing/app.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
/* eslint-disable react/no-multi-comp */
2-
import React, {Component, PropTypes} from "react";
2+
import React, {Component} from "react";
3+
import PropTypes from "prop-types";
34
import createHistory from "history/createHashHistory";
45
import {Bling as Gpt} from "react-gpt"; // eslint-disable-line import/no-unresolved
56
import "../log";

examples/apps/routing/page.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
/* eslint-disable react/no-multi-comp */
2-
import React, {Component, PropTypes} from "react";
2+
import React, {Component} from "react";
3+
import PropTypes from "prop-types";
34
import {Bling as Gpt} from "react-gpt"; // eslint-disable-line import/no-unresolved
45
import styles from "./styles/page";
56

examples/apps/single-request/button.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
import React, {PropTypes, Component} from "react";
1+
import React, {Component} from "react";
2+
import PropTypes from "prop-types";
23
import styles from "./styles";
34

45
export default class Button extends Component {

test/Bling.spec.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
/* eslint-disable react/no-multi-comp */
2-
import React, {Component, PropTypes} from "react";
2+
import React, {Component} from "react";
3+
import PropTypes from "prop-types";
34
import ReactTestUtils from "react-addons-test-utils";
45
import Bling from "../src/Bling";
56
import Events from "../src/Events";

0 commit comments

Comments
 (0)