Skip to content

Commit

Permalink
Use prop-types package (#2029)
Browse files Browse the repository at this point in the history
  • Loading branch information
Timer committed Apr 25, 2017
1 parent 33a9700 commit d65070e
Show file tree
Hide file tree
Showing 18 changed files with 35 additions and 17 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
"chai": "3.5.0",
"jsdom": "9.8.3",
"mocha": "3.2.0",
"prop-types": "15.5.6",
"test-integrity": "1.0.0"
}
}
3 changes: 2 additions & 1 deletion packages/react-scripts/fixtures/kitchensink/src/App.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@
* of patent rights can be found in the PATENTS file in the same directory.
*/

import React, { Component, PropTypes, createElement } from 'react';
import React, { Component, createElement } from 'react';
import PropTypes from 'prop-types';

class BuiltEmitter extends Component {
static propTypes = {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@
* of patent rights can be found in the PATENTS file in the same directory.
*/

import React, { Component, PropTypes } from 'react';
import React, { Component } from 'react';
import PropTypes from 'prop-types';
import load from 'absoluteLoad';

export default class extends Component {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@
* of patent rights can be found in the PATENTS file in the same directory.
*/

import React, { Component, PropTypes } from 'react';
import React, { Component } from 'react';
import PropTypes from 'prop-types';

function load() {
return [[1, '1'], [2, '2'], [3, '3'], [4, '4']];
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@
* of patent rights can be found in the PATENTS file in the same directory.
*/

import React, { Component, PropTypes } from 'react';
import React, { Component } from 'react';
import PropTypes from 'prop-types';

function load(users) {
return [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@
* of patent rights can be found in the PATENTS file in the same directory.
*/

import React, { Component, PropTypes } from 'react';
import React, { Component } from 'react';
import PropTypes from 'prop-types';

async function load() {
return [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@
* of patent rights can be found in the PATENTS file in the same directory.
*/

import React, { Component, PropTypes } from 'react';
import React, { Component } from 'react';
import PropTypes from 'prop-types';

export default class extends Component {
static propTypes = {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@
* of patent rights can be found in the PATENTS file in the same directory.
*/

import React, { Component, PropTypes } from 'react';
import React, { Component } from 'react';
import PropTypes from 'prop-types';

function load(prefix) {
return [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@
* of patent rights can be found in the PATENTS file in the same directory.
*/

import React, { Component, PropTypes } from 'react';
import React, { Component } from 'react';
import PropTypes from 'prop-types';

const styled = ([style]) =>
style
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@
* of patent rights can be found in the PATENTS file in the same directory.
*/

import React, { Component, PropTypes } from 'react';
import React, { Component } from 'react';
import PropTypes from 'prop-types';

function load(id = 0) {
return [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@
* of patent rights can be found in the PATENTS file in the same directory.
*/

import React, { Component, PropTypes } from 'react';
import React, { Component } from 'react';
import PropTypes from 'prop-types';

async function load() {
return {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@
* of patent rights can be found in the PATENTS file in the same directory.
*/

import React, { Component, PropTypes } from 'react';
import React, { Component } from 'react';
import PropTypes from 'prop-types';

function* load(limit) {
let i = 1;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@
* of patent rights can be found in the PATENTS file in the same directory.
*/

import React, { Component, PropTypes } from 'react';
import React, { Component } from 'react';
import PropTypes from 'prop-types';

function load() {
return [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@
* of patent rights can be found in the PATENTS file in the same directory.
*/

import React, { Component, PropTypes } from 'react';
import React, { Component } from 'react';
import PropTypes from 'prop-types';

function load(baseUser) {
return [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@
* of patent rights can be found in the PATENTS file in the same directory.
*/

import React, { Component, PropTypes } from 'react';
import React, { Component } from 'react';
import PropTypes from 'prop-types';

function load() {
return Promise.resolve([
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@
* of patent rights can be found in the PATENTS file in the same directory.
*/

import React, { Component, PropTypes } from 'react';
import React, { Component } from 'react';
import PropTypes from 'prop-types';

function load({ id, ...rest } = { id: 0, user: { id: 42, name: '42' } }) {
return [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@
* of patent rights can be found in the PATENTS file in the same directory.
*/

import React, { Component, PropTypes } from 'react';
import React, { Component } from 'react';
import PropTypes from 'prop-types';

function load({ id = 0, ...rest }) {
return [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@
* of patent rights can be found in the PATENTS file in the same directory.
*/

import React, { Component, PropTypes } from 'react';
import React, { Component } from 'react';
import PropTypes from 'prop-types';

function load(name) {
return [
Expand Down

0 comments on commit d65070e

Please sign in to comment.