Skip to content

Commit

Permalink
Merge pull request #1 from jlengstorf/fix/prop-types
Browse files Browse the repository at this point in the history
fix(PropTypes): remove deprecated calls to React.PropTypes
  • Loading branch information
chrisdhanaraj authored Jun 8, 2017
2 parents 8e62138 + 4071a76 commit 2014332
Show file tree
Hide file tree
Showing 6 changed files with 11 additions and 7 deletions.
3 changes: 2 additions & 1 deletion .storybook/ThemeContainer.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import React, { PropTypes } from 'react';
import React from 'react';
import PropTypes from 'prop-types';
import ThemeSwitcher from './ThemeSwitcher';
import AppContainer from '../components/AppContainer';
import './_theme-container.scss';
Expand Down
3 changes: 2 additions & 1 deletion .storybook/ThemeSwitcher.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import React, { PropTypes } from 'react';
import React from 'react';
import PropTypes from 'prop-types';
import './_theme-switcher.scss';
import Icon from '../components/Icon';

Expand Down
5 changes: 3 additions & 2 deletions .storybook/components/CardStory.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import React, { Component } from 'react';
import PropTypes from 'prop-types';
import { storiesOf } from '@kadira/storybook';
import Card from '../../components/Card';
import OverflowMenu from '../../components/OverflowMenu';
Expand Down Expand Up @@ -47,8 +48,8 @@ const virtualServerCardLinks = [

class ControlledCard extends Component {
static propTypes = {
status: React.PropTypes.number,
stopApp: React.PropTypes.func,
status: PropTypes.number,
stopApp: PropTypes.func,
}

static defaultProps = {
Expand Down
2 changes: 1 addition & 1 deletion components/Pagination.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ class Pagination extends Component {
pageRangeText: PropTypes.func,
pageSizes: PropTypes.arrayOf(PropTypes.number).isRequired,
totalItems: PropTypes.number.isRequired,
disabled: React.PropTypes.bool,
disabled: PropTypes.bool,
page: PropTypes.number,
pageSize: PropTypes.number,
}
Expand Down
2 changes: 1 addition & 1 deletion components/Tag.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ const TYPES = {
};

const propTypes = {
children: React.PropTypes.node,
children: PropTypes.node,
className: PropTypes.string,
type: PropTypes.oneOf(Object.keys(TYPES)).isRequired,
};
Expand Down
3 changes: 2 additions & 1 deletion internal/ClickListener.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
/* global document */

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

class ClickListener extends React.Component {
static propTypes = {
Expand Down

0 comments on commit 2014332

Please sign in to comment.