From c6b7e11000a88b044ae386fd22bb22d190d49a67 Mon Sep 17 00:00:00 2001 From: Sandro Mani Date: Mon, 31 Oct 2016 13:59:04 +0100 Subject: [PATCH] Make social share title a prop --- web/client/components/share/ShareSocials.jsx | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/web/client/components/share/ShareSocials.jsx b/web/client/components/share/ShareSocials.jsx index 4ccc6ed7d5..fc516d53dc 100644 --- a/web/client/components/share/ShareSocials.jsx +++ b/web/client/components/share/ShareSocials.jsx @@ -40,14 +40,20 @@ require('./share.css'); const ShareSocials = React.createClass({ propTypes: { shareUrl: React.PropTypes.string, - getCount: React.PropTypes.func + getCount: React.PropTypes.func, + shareTitle: React.PropTypes.string + }, + getDefaultProps() { + return { + shareTitle: 'GeoSolutions' + }; }, render() { let countProps = {}; if (this.props.getCount) { countProps.getCount = this.props.getCount; } - const title = 'GeoSolutions'; + const title = this.props.shareTitle; return (