Skip to content

Commit

Permalink
uses prop-types package to be compatible with React 15.5+
Browse files Browse the repository at this point in the history
  • Loading branch information
Vincent Audebert committed Jun 30, 2017
1 parent d227495 commit 3583c76
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 4 deletions.
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,7 @@
"eslint-plugin-jsx-a11y": "^4.0.0",
"eslint-plugin-react": "^6.10.3",
"jest": "^19.0.2",
"prop-types": "^15.5.10",
"react": "^15.4.2",
"react-addons-test-utils": "^15.4.2",
"react-dom": "^15.4.2",
Expand Down
3 changes: 2 additions & 1 deletion src/Accordion/accordion.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import React, { Component, PropTypes } from 'react';
import PropTypes from 'prop-types';
import React, { Component } from 'react';

const defaultProps = {
accordion: true,
Expand Down
3 changes: 2 additions & 1 deletion src/AccordionItem/accordion-item.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import React, { Component, PropTypes } from 'react';
import PropTypes from 'prop-types';
import React, { Component } from 'react';
import uuid from 'uuid';

const defaultProps = {
Expand Down
3 changes: 2 additions & 1 deletion src/AccordionItemBody/accordion-item-body.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import React, { PropTypes } from 'react';
import PropTypes from 'prop-types';
import React from 'react';
import classNames from 'classnames';

const defaultProps = {
Expand Down
3 changes: 2 additions & 1 deletion src/AccordionItemTitle/accordion-item-title.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import React, { Component, PropTypes } from 'react';
import PropTypes from 'prop-types';
import React, { Component } from 'react';

const defaultProps = {
id: '',
Expand Down

0 comments on commit 3583c76

Please sign in to comment.