File tree Expand file tree Collapse file tree 2 files changed +8
-1
lines changed Expand file tree Collapse file tree 2 files changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -105,6 +105,7 @@ const GUIComponent = props => {
105
105
onRequestCloseTelemetryModal,
106
106
onSeeCommunity,
107
107
onShare,
108
+ onShowPrivacyPolicy,
108
109
onTelemetryModalCancel,
109
110
onTelemetryModalOptIn,
110
111
onTelemetryModalOptOut,
@@ -162,6 +163,7 @@ const GUIComponent = props => {
162
163
onOptIn = { onTelemetryModalOptIn }
163
164
onOptOut = { onTelemetryModalOptOut }
164
165
onRequestClose = { onRequestCloseTelemetryModal }
166
+ onShowPrivacyPolicy = { onShowPrivacyPolicy }
165
167
/>
166
168
) : null }
167
169
{ loading ? (
@@ -399,6 +401,7 @@ GUIComponent.propTypes = {
399
401
onRequestCloseTelemetryModal : PropTypes . func ,
400
402
onSeeCommunity : PropTypes . func ,
401
403
onShare : PropTypes . func ,
404
+ onShowPrivacyPolicy : PropTypes . func ,
402
405
onTabSelect : PropTypes . func ,
403
406
onTelemetryModalCancel : PropTypes . func ,
404
407
onTelemetryModalOptIn : PropTypes . func ,
Original file line number Diff line number Diff line change @@ -101,6 +101,9 @@ class TelemetryModal extends React.PureComponent {
101
101
privacyPolicyLink : ( < a
102
102
className = { styles . privacyPolicyLink }
103
103
href = "https://scratch.mit.edu/privacy_policy/"
104
+ onClick = { this . props . onShowPrivacyPolicy }
105
+ target = "_blank"
106
+ rel = "noopener noreferrer"
104
107
>
105
108
< FormattedMessage { ...messages . privacyPolicyLink } />
106
109
</ a > )
@@ -134,7 +137,8 @@ TelemetryModal.propTypes = {
134
137
onCancel : PropTypes . func ,
135
138
onOptIn : PropTypes . func . isRequired ,
136
139
onOptOut : PropTypes . func . isRequired ,
137
- onRequestClose : PropTypes . func
140
+ onRequestClose : PropTypes . func ,
141
+ onShowPrivacyPolicy : PropTypes . func
138
142
} ;
139
143
140
144
export default injectIntl ( TelemetryModal ) ;
You can’t perform that action at this time.
0 commit comments