@@ -14,7 +14,7 @@ import {
14
14
copilotMaxNewToken ,
15
15
copilotTemperature ,
16
16
textWrapEventAction ,
17
- useMatomoAnalytics ,
17
+ useMatomoPerfAnalytics ,
18
18
saveTokenToast ,
19
19
removeTokenToast ,
20
20
saveSwarmSettingsToast ,
@@ -39,7 +39,7 @@ export interface RemixUiSettingsProps {
39
39
config : any
40
40
editor : any
41
41
_deps : any
42
- useMatomoAnalytics : boolean
42
+ useMatomoPerfAnalytics : boolean
43
43
useCopilot : boolean
44
44
themeModule : ThemeModule
45
45
localeModule : LocaleModule
@@ -125,8 +125,8 @@ export const RemixUiSettings = (props: RemixUiSettingsProps) => {
125
125
} , [ themeName , state . message ] )
126
126
127
127
useEffect ( ( ) => {
128
- if ( props . useMatomoAnalytics !== null ) useMatomoAnalytics ( props . config , props . useMatomoAnalytics , dispatch )
129
- } , [ props . useMatomoAnalytics ] )
128
+ if ( props . useMatomoPerfAnalytics !== null ) useMatomoPerfAnalytics ( props . config , props . useMatomoPerfAnalytics , dispatch )
129
+ } , [ props . useMatomoPerfAnalytics ] )
130
130
131
131
const onchangeGenerateContractMetadata = ( event ) => {
132
132
generateContractMetadat ( props . config , event . target . checked , dispatch )
@@ -167,7 +167,7 @@ export const RemixUiSettings = (props: RemixUiSettingsProps) => {
167
167
}
168
168
169
169
const onchangeMatomoAnalytics = ( event ) => {
170
- useMatomoAnalytics ( props . config , event . target . checked , dispatch )
170
+ useMatomoPerfAnalytics ( props . config , event . target . checked , dispatch )
171
171
}
172
172
173
173
const onchangeUseAutoComplete = ( event ) => {
@@ -197,7 +197,7 @@ export const RemixUiSettings = (props: RemixUiSettingsProps) => {
197
197
const isMetadataChecked = props . config . get ( 'settings/generate-contract-metadata' ) || false
198
198
const isEditorWrapChecked = props . config . get ( 'settings/text-wrap' ) || false
199
199
const isPersonalChecked = props . config . get ( 'settings/personal-mode' ) || false
200
- const isMatomoChecked = props . config . get ( 'settings/matomo-analytics' ) || false
200
+ const isMatomoChecked = props . config . get ( 'settings/matomo-perf- analytics' ) || false
201
201
202
202
const isAutoCompleteChecked = props . config . get ( 'settings/auto-completion' ) || false
203
203
const isShowGasInEditorChecked = props . config . get ( 'settings/show-gas' ) || false
@@ -315,25 +315,10 @@ export const RemixUiSettings = (props: RemixUiSettingsProps) => {
315
315
</ div >
316
316
< div className = "custom-control custom-checkbox mb-1" >
317
317
< input onChange = { onchangeMatomoAnalytics } id = "settingsMatomoAnalytics" type = "checkbox" className = "custom-control-input" checked = { isMatomoChecked } />
318
- < label data-id = "label-matomo-settings" className = { `form-check-label custom-control-label align-middle ${ getTextClass ( 'settings/matomo-analytics' ) } ` } htmlFor = "settingsMatomoAnalytics" >
318
+ < label data-id = "label-matomo-settings" className = { `form-check-label custom-control-label align-middle ${ getTextClass ( 'settings/matomo-perf- analytics' ) } ` } htmlFor = "settingsMatomoAnalytics" >
319
319
< span >
320
- < FormattedMessage id = "settings.matomoAnalytics " />
320
+ < FormattedMessage id = "settings.matomoPerfAnalytics " />
321
321
</ span >
322
- < a href = "https://medium.com/remix-ide/help-us-improve-remix-ide-66ef69e14931" target = "_blank" >
323
- { ' ' }
324
- < FormattedMessage id = "settings.analyticsInRemix" />
325
- </ a > { ' ' }
326
- < span > & </ span > { ' ' }
327
- < a target = "_blank" href = "https://matomo.org/free-software" >
328
- Matomo
329
- </ a >
330
- < CustomTooltip
331
- placement = "auto"
332
- tooltipId = "settings-tooltip-matomo"
333
- tooltipText = { intl . formatMessage ( { id : 'settings.matomoAnalyticsTooltip' } ) }
334
- >
335
- < i className = "ml-1 far fa-info-circle" > </ i >
336
- </ CustomTooltip >
337
322
</ label >
338
323
</ div >
339
324
< div className = "custom-control custom-checkbox mb-1" >
0 commit comments