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';
6
6
7
7
import TwitterIcon from '../../../../../assets/images/social/icon_twitter.svg' ;
8
8
import FacebookIcon from '../../../../../assets/images/social/icon_facebook.svg' ;
9
- import EmailIcon from '../../../../../assets/images/social/icon_email.svg' ;
10
9
import MoreIcon from '../../../../../assets/images/social/icon_plus.svg' ;
11
10
12
11
import './social_media.scss' ;
@@ -23,8 +22,15 @@ export default class ShareSocial extends React.Component {
23
22
}
24
23
} else {
25
24
const scriptNode = document . createElement ( 'script' ) ;
25
+ const scriptNodeConfig = document . createElement ( 'script' ) ;
26
+
27
+ scriptNode . type = 'text/javascript' ;
28
+ scriptNodeConfig . type = 'text/javascript' ;
26
29
scriptNode . src = 'https://s7.addthis.com/js/300/addthis_widget.js#pubid=ra-52f22306211cecfc' ;
30
+ scriptNodeConfig . text = "var addthis_config = { services_exclude: 'email' };" ;
31
+
27
32
this . shareDiv . appendChild ( scriptNode ) ;
33
+ this . shareDiv . appendChild ( scriptNodeConfig ) ;
28
34
}
29
35
}
30
36
@@ -48,15 +54,6 @@ export default class ShareSocial extends React.Component {
48
54
>
49
55
< TwitterIcon />
50
56
</ 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 >
60
57
< a
61
58
className = "addthis_button_compact"
62
59
href = "#"
You can’t perform that action at this time.
0 commit comments