File tree Expand file tree Collapse file tree 1 file changed +7
-10
lines changed Expand file tree Collapse file tree 1 file changed +7
-10
lines changed Original file line number Diff line number Diff line change @@ -6,7 +6,6 @@ import React from 'react';
66
77import TwitterIcon from '../../../../../assets/images/social/icon_twitter.svg' ;
88import FacebookIcon from '../../../../../assets/images/social/icon_facebook.svg' ;
9- import EmailIcon from '../../../../../assets/images/social/icon_email.svg' ;
109import MoreIcon from '../../../../../assets/images/social/icon_plus.svg' ;
1110
1211import './social_media.scss' ;
@@ -23,8 +22,15 @@ export default class ShareSocial extends React.Component {
2322 }
2423 } else {
2524 const scriptNode = document . createElement ( 'script' ) ;
25+ const scriptNodeConfig = document . createElement ( 'script' ) ;
26+
27+ scriptNode . type = 'text/javascript' ;
28+ scriptNodeConfig . type = 'text/javascript' ;
2629 scriptNode . src = 'https://s7.addthis.com/js/300/addthis_widget.js#pubid=ra-52f22306211cecfc' ;
30+ scriptNodeConfig . text = "var addthis_config = { services_exclude: 'email' };" ;
31+
2732 this . shareDiv . appendChild ( scriptNode ) ;
33+ this . shareDiv . appendChild ( scriptNodeConfig ) ;
2834 }
2935 }
3036
@@ -48,15 +54,6 @@ export default class ShareSocial extends React.Component {
4854 >
4955 < TwitterIcon />
5056 </ a >
51- < a
52- className = "addthis_button_email"
53- target = "_blank"
54- title = "Email"
55- aria-label = "Email this challenge"
56- href = "#"
57- >
58- < EmailIcon />
59- </ a >
6057 < a
6158 className = "addthis_button_compact"
6259 href = "#"
You can’t perform that action at this time.
0 commit comments