Commit d65070ed authored by Joe Haddad's avatar Joe Haddad Committed by GitHub
Browse files

Use prop-types package (#2029)

parent 33a97001
3 merge requests!12191Lim.Pisey.168:/Identified - We are currently investigating reports of missing build logs. The issue has been identified and a resolution is in progress. We will provide a further update when available.Mar 21, 09:02 UTC,!12853brikk,!5717Automatically extract project file structure from build bundle file
Showing with 35 additions and 17 deletions
+35 -17
......@@ -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"
}
}
......@@ -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 = {
......
......@@ -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 {
......
......@@ -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']];
......
......@@ -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 [
......
......@@ -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 [
......
......@@ -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 = {
......
......@@ -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 [
......
......@@ -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
......
......@@ -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 [
......
......@@ -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 {
......
......@@ -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;
......
......@@ -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 [
......
......@@ -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 [
......
......@@ -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([
......
......@@ -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 [
......
......@@ -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 [
......
......@@ -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 [
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment