From bfff7b7d1fd002ac8d5e0c3ef24e5afdec5cfa0b Mon Sep 17 00:00:00 2001 From: Yonatan Naxon Date: Sat, 9 Sep 2017 18:44:47 +0300 Subject: [PATCH 1/6] Added support for size attribute on FBLike.js --- src/FBLike.js | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/FBLike.js b/src/FBLike.js index d03de4a..5634339 100644 --- a/src/FBLike.js +++ b/src/FBLike.js @@ -14,7 +14,8 @@ export default class FBLike extends Component { showFaces: PropTypes.bool, version: PropTypes.string, width: PropTypes.number, - xfbml: PropTypes.bool + xfbml: PropTypes.bool, + size: PropTypes.oneOf(['small', 'large']) } static defaultProps = { @@ -26,7 +27,8 @@ export default class FBLike extends Component { share: true, showFaces: true, version: 'v2.5', - xfbml: true + xfbml: true, + size: 'small' } componentDidMount() { @@ -58,12 +60,12 @@ export default class FBLike extends Component { } render() { - const {action, colorScheme, href, kidDirectedSite, layout, share, showFaces, width} = this.props; + const {action, colorScheme, href, kidDirectedSite, layout, share, showFaces, width, size} = this.props; const widthParam = width ? {'data-width': width} : {}; return (
-
+
); } From ff171dcc50e2e131eb22da90a3c22aaeb2cafe43 Mon Sep 17 00:00:00 2001 From: Yonatan Naxon Date: Sat, 9 Sep 2017 18:55:42 +0300 Subject: [PATCH 2/6] Added reference to original repository --- README.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/README.md b/README.md index b9de1c8..2dfdfd4 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,8 @@ # Facebook Plugins +## Original Package +this package is a fork of [studiofrenetic/facebook-plugins] (https://github.com/studiofrenetic/facebook-plugins) + ## Install Install the component using [NPM](https://www.npmjs.com/): @@ -36,6 +39,7 @@ $ npm install --save facebook-plugins href="http://facebook.com" action="like" layout="button_count" + size="small" locale="fr_CA" share={false} showFaces={false}/> From 014837717634809b1a8f44ca2527ef749202b0a9 Mon Sep 17 00:00:00 2001 From: Yonatan Naxon Date: Sat, 9 Sep 2017 18:56:29 +0300 Subject: [PATCH 3/6] Fixed README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 2dfdfd4..055d94a 100644 --- a/README.md +++ b/README.md @@ -1,7 +1,7 @@ # Facebook Plugins ## Original Package -this package is a fork of [studiofrenetic/facebook-plugins] (https://github.com/studiofrenetic/facebook-plugins) +this package is a fork of [studiofrenetic/facebook-plugins](https://github.com/studiofrenetic/facebook-plugins) ## Install From 6b7037b0c95cb862ecdf6c1485a70c538f45fda0 Mon Sep 17 00:00:00 2001 From: Yonatan Naxon Date: Sat, 9 Sep 2017 18:59:18 +0300 Subject: [PATCH 4/6] Added example to dev/dev.js --- dev/dev.js | 1 + package.json | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/dev/dev.js b/dev/dev.js index 99bb6e9..2eb8a0f 100644 --- a/dev/dev.js +++ b/dev/dev.js @@ -35,6 +35,7 @@ class Dev extends Component { action="like" layout="button_count" locale="fr_CA" + size="small" share={false} showFaces={false}/> diff --git a/package.json b/package.json index 568dd13..4679c89 100644 --- a/package.json +++ b/package.json @@ -14,7 +14,7 @@ "license": "MIT", "repository": { "type": "git", - "url": "https://github.com/studiofrenetic/facebook-plugins" + "url": "https://github.com/ynaxon/facebook-plugins" }, "dependencies": { "react-side-effect": "^1.0.2" From 5dd86e0b19109b4f26d330d8d69c2c9c04b75a1b Mon Sep 17 00:00:00 2001 From: Yonatan Naxon Date: Sat, 9 Sep 2017 19:02:22 +0300 Subject: [PATCH 5/6] Update package.json --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 4679c89..568dd13 100644 --- a/package.json +++ b/package.json @@ -14,7 +14,7 @@ "license": "MIT", "repository": { "type": "git", - "url": "https://github.com/ynaxon/facebook-plugins" + "url": "https://github.com/studiofrenetic/facebook-plugins" }, "dependencies": { "react-side-effect": "^1.0.2" From ef510ebce826d17986d18dde80ba0f400c89274e Mon Sep 17 00:00:00 2001 From: Yonatan Naxon Date: Sat, 9 Sep 2017 21:32:54 +0300 Subject: [PATCH 6/6] Update README.md --- README.md | 3 --- 1 file changed, 3 deletions(-) diff --git a/README.md b/README.md index 055d94a..b18806e 100644 --- a/README.md +++ b/README.md @@ -1,8 +1,5 @@ # Facebook Plugins -## Original Package -this package is a fork of [studiofrenetic/facebook-plugins](https://github.com/studiofrenetic/facebook-plugins) - ## Install Install the component using [NPM](https://www.npmjs.com/):