Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
mkhazov committed Oct 20, 2017
1 parent 40b9af1 commit 1581b4f
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 7 deletions.
12 changes: 8 additions & 4 deletions lib/LinkAdd/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@ Object.defineProperty(exports, "__esModule", {

var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();

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

var _propTypes2 = _interopRequireDefault(_propTypes);

var _react = require('react');

var _react2 = _interopRequireDefault(_react);
Expand Down Expand Up @@ -265,13 +269,13 @@ var LinkAdd = function (_Component) {
}(_react.Component);

LinkAdd.propTypes = {
placeholder: _react.PropTypes.string,
showAddButton: _react.PropTypes.bool,
showRemoveButton: _react.PropTypes.bool
placeholder: _propTypes.string,
showAddButton: _propTypes.bool,
showRemoveButton: _propTypes.bool
};
LinkAdd.defaultProps = {
placeholder: 'Paste the link url …',
showAddButton: true,
showRemoveButton: true
};
exports.default = LinkAdd;
exports.default = LinkAdd;
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
"union-class-names": "^1.0.0"
},
"peerDependencies": {
"react": "^15.0.0",
"react-dom": "^15.0.0"
"react": "^16.0.0",
"react-dom": "^16.0.0"
}
}
3 changes: 2 additions & 1 deletion src/LinkAdd/index.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 ReactDOM from 'react-dom';
import { getVisibleSelectionRect } from 'draft-js';
import linkifyIt from 'linkify-it';
Expand Down

0 comments on commit 1581b4f

Please sign in to comment.