|
@@ -13,7 +13,7 @@ import {
|
13
|
13
|
IconYahoo
|
14
|
14
|
} from '../../../../base/icons';
|
15
|
15
|
import { Tooltip } from '../../../../base/tooltip';
|
16
|
|
-import { copyText, openURLInBrowser } from '../../../../base/util';
|
|
16
|
+import { copyText } from '../../../../base/util';
|
17
|
17
|
|
18
|
18
|
type Props = {
|
19
|
19
|
|
|
@@ -52,18 +52,6 @@ function InviteByEmailSection({ inviteSubject, inviteText, t }: Props) {
|
52
|
52
|
copyText(inviteText);
|
53
|
53
|
}
|
54
|
54
|
|
55
|
|
- /**
|
56
|
|
- * Opens an email provider containing the conference invite.
|
57
|
|
- *
|
58
|
|
- * @param {string} url - The url to be opened.
|
59
|
|
- * @returns {Function}
|
60
|
|
- */
|
61
|
|
- function _onSelectProvider(url) {
|
62
|
|
- return function() {
|
63
|
|
- openURLInBrowser(url, true);
|
64
|
|
- };
|
65
|
|
- }
|
66
|
|
-
|
67
|
55
|
/**
|
68
|
56
|
* Toggles the email invite drawer.
|
69
|
57
|
*
|
|
@@ -112,10 +100,13 @@ function InviteByEmailSection({ inviteSubject, inviteText, t }: Props) {
|
112
|
100
|
content = { t(tooltipKey) }
|
113
|
101
|
key = { idx }
|
114
|
102
|
position = 'top'>
|
115
|
|
- <div
|
116
|
|
- onClick = { _onSelectProvider(url) }>
|
|
103
|
+ <a
|
|
104
|
+ className = 'provider-icon'
|
|
105
|
+ href = { url }
|
|
106
|
+ rel = 'noopener noreferrer'
|
|
107
|
+ target = '_blank'>
|
117
|
108
|
<Icon src = { icon } />
|
118
|
|
- </div>
|
|
109
|
+ </a>
|
119
|
110
|
</Tooltip>
|
120
|
111
|
))
|
121
|
112
|
}
|