Skip to content

Commit

Permalink
Make social share title a prop
Browse files Browse the repository at this point in the history
  • Loading branch information
manisandro committed Nov 15, 2016
1 parent 51cb7b2 commit c6b7e11
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions web/client/components/share/ShareSocials.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -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 (
<div className="social-links">
Expand Down

0 comments on commit c6b7e11

Please sign in to comment.