Skip to content

Commit

Permalink
1.0.6
Browse files Browse the repository at this point in the history
  • Loading branch information
capaj committed May 11, 2017
1 parent 54446ad commit efada0e
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 7 deletions.
8 changes: 5 additions & 3 deletions dist/tweet-embed.es.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ class TweetEmbed extends React.Component {
}

render() {
return React.createElement('div', { ref: c => {
return React.createElement('div', { className: this.props.className, ref: c => {
this._div = c;
} });
}
Expand All @@ -45,12 +45,14 @@ TweetEmbed.propTypes = {
options: PropTypes.object,
protocol: PropTypes.string,
onTweetLoadSuccess: PropTypes.func,
onTweetLoadError: PropTypes.func
onTweetLoadError: PropTypes.func,
className: PropTypes.string
};

TweetEmbed.defaultProps = {
protocol: 'https:',
options: {}
options: {},
className: null
};

export default TweetEmbed;
8 changes: 5 additions & 3 deletions dist/tweet-embed.js
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ var TweetEmbed = function (_React$Component) {
value: function render() {
var _this3 = this;

return _react2.default.createElement('div', { ref: function ref(c) {
return _react2.default.createElement('div', { className: this.props.className, ref: function ref(c) {
_this3._div = c;
} });
}
Expand All @@ -90,12 +90,14 @@ TweetEmbed.propTypes = {
options: _react.PropTypes.object,
protocol: _react.PropTypes.string,
onTweetLoadSuccess: _react.PropTypes.func,
onTweetLoadError: _react.PropTypes.func
onTweetLoadError: _react.PropTypes.func,
className: _react.PropTypes.string
};

TweetEmbed.defaultProps = {
protocol: 'https:',
options: {}
options: {},
className: null
};

exports.default = TweetEmbed;
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "react-tweet-embed",
"version": "1.0.5",
"version": "1.0.6",
"description": "react component that you supply tweet id and you'll get a tweet embed back, nothing more",
"main": "dist/tweet-embed.js",
"module": "dist/tweet-embed.es.js",
Expand Down

0 comments on commit efada0e

Please sign in to comment.