Skip to content
This repository was archived by the owner on Oct 9, 2020. It is now read-only.

refactor: changed React.PropTypes to standalone prop-types package #70

Closed
wants to merge 2 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions lib/component.jsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
var React = require('react');
var assign = require('object-assign');

var propTypes = require('prop-types');

// DEPRECATED. Please use `svg-inline-react` package.
//
Expand All @@ -16,8 +16,8 @@ var IconSVG = React.createClass({
};
},
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This entire block is deprecated & removed in #55.

propTypes: {
src: React.PropTypes.string.isRequired,
elementName: React.PropTypes.string
src: propTypes.string.isRequired,
elementName: propTypes.string
},
render: function render() {
var props = assign({}, this.props,
Expand Down
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
"dependencies": {
"loader-utils": "^0.2.11",
"object-assign": "^4.0.1",
"prop-types": "^15.6.0",
"simple-html-tokenizer": "^0.1.1"
},
"devDependencies": {
Expand Down