diff --git a/example/index.html b/example/index.html index a49c2f3..1d54ad5 100644 --- a/example/index.html +++ b/example/index.html @@ -32,6 +32,12 @@ div#app a { margin-right:5px; } + .scoop-it-icon { + display: inline-block; + width: 16px; + height: 16px; + background-image: url('http://www.scoop.it/resources/img/V4/presscoverage/logo/it_24.png') + } - \ No newline at end of file + diff --git a/react-social.js b/react-social.js index 0666501..d0c6ddf 100644 --- a/react-social.js +++ b/react-social.js @@ -608,5 +608,15 @@ } }); + exports.ScoopItButton = createClass({ + displayName: 'ScoopItButton' + + , mixins: [Button, DefaultBlankTarget] + + , constructUrl: function() { + return "https://www.scoop.it/bookmarklet?url=" + encodeURIComponent(this.props.url) + } + }); + return exports; }); diff --git a/test.js b/test.js index b1830ae..32d3706 100644 --- a/test.js +++ b/test.js @@ -141,3 +141,7 @@ test("TumblrButton", function (t) { test("PocketButton", function (t) { t.plan(testButton(t, "TumblrButton")); }); + +test("ScoopItButton", function (t) { + t.plan(testButton(t, "ScoopItButton")); +});