File tree Expand file tree Collapse file tree 2 files changed +6
-6
lines changed
app/src/lib/remix-app/components/modals
toggle/src/lib/toggle-switch Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -33,7 +33,7 @@ const ManagePreferencesSwitcher = (prop: {
33
33
</ div >
34
34
< div >
35
35
< ToggleSwitch
36
- id = "matomoAnonAnalyticsSwitch "
36
+ id = "matomoAnonAnalyticsToggle "
37
37
size = "2xl"
38
38
tooltipTextId = "remixApp.mpOp1Tooltip"
39
39
disabled = { true }
@@ -57,7 +57,7 @@ const ManagePreferencesSwitcher = (prop: {
57
57
</ div >
58
58
< div >
59
59
< ToggleSwitch
60
- id = "matomoPerfAnalyticsSwitch "
60
+ id = "matomoPerfAnalyticsToggle "
61
61
size = "2xl"
62
62
isOn = { matPerfSwitch }
63
63
onClick = { ( ) => setMatPerfSwitch ( ! matPerfSwitch ) }
@@ -81,7 +81,7 @@ const ManagePreferencesSwitcher = (prop: {
81
81
</ div >
82
82
< div >
83
83
< ToggleSwitch
84
- id = "remixAISwitch "
84
+ id = "remixAIToggle "
85
85
size = "2xl"
86
86
isOn = { remixAISwitch }
87
87
onClick = { ( ) => setRemixAISwitch ( ! remixAISwitch ) }
Original file line number Diff line number Diff line change @@ -24,13 +24,13 @@ export const ToggleSwitch = (props: IToggleSwitch) => {
24
24
const childJSXWithTooltip = (
25
25
< CustomTooltip
26
26
placement = { "auto" }
27
- tooltipId = "matomoAnonAnalyticsTooltip"
27
+ tooltipId = { id + "Tooltip" }
28
28
tooltipClasses = "text-nowrap"
29
29
tooltipText = { < FormattedMessage id = { tooltipTextId } /> }
30
30
>
31
31
< button
32
32
data-id = { id + "Switch" }
33
- id = 'matomoAnonAnalyticsSwitch'
33
+ id = { id }
34
34
className = { `btn ${ isOn ? onstyle : offstyle } ` }
35
35
onClick = { ( ) => { if ( ! disabled ) onClick ( ) } }
36
36
disabled = { disabled || false }
@@ -43,7 +43,7 @@ export const ToggleSwitch = (props: IToggleSwitch) => {
43
43
const childJSXWithoutTooltip = (
44
44
< button
45
45
data-id = { id + "Switch" }
46
- id = 'matomoAnonAnalyticsSwitch'
46
+ id = { id }
47
47
className = { `btn ${ isOn ? onstyle : offstyle } ` }
48
48
onClick = { ( ) => { if ( ! disabled ) onClick ( ) } }
49
49
disabled = { disabled || false }
You can’t perform that action at this time.
0 commit comments