Skip to content

Commit 6a44bdf

Browse files
committed
id
1 parent 49cdc44 commit 6a44bdf

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

libs/remix-ui/app/src/lib/remix-app/components/modals/managePreferences.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ const ManagePreferencesSwitcher = (prop: {
3333
</div>
3434
<div>
3535
<ToggleSwitch
36-
id = "matomoAnonAnalyticsSwitch"
36+
id = "matomoAnonAnalyticsToggle"
3737
size = "2xl"
3838
tooltipTextId = "remixApp.mpOp1Tooltip"
3939
disabled = {true}
@@ -57,7 +57,7 @@ const ManagePreferencesSwitcher = (prop: {
5757
</div>
5858
<div>
5959
<ToggleSwitch
60-
id = "matomoPerfAnalyticsSwitch"
60+
id = "matomoPerfAnalyticsToggle"
6161
size = "2xl"
6262
isOn = {matPerfSwitch}
6363
onClick = {() => setMatPerfSwitch(!matPerfSwitch)}
@@ -81,7 +81,7 @@ const ManagePreferencesSwitcher = (prop: {
8181
</div>
8282
<div>
8383
<ToggleSwitch
84-
id = "remixAISwitch"
84+
id = "remixAIToggle"
8585
size = "2xl"
8686
isOn = {remixAISwitch}
8787
onClick = {() => setRemixAISwitch(!remixAISwitch)}

libs/remix-ui/toggle/src/lib/toggle-switch/toggle-switch.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,13 +24,13 @@ export const ToggleSwitch = (props: IToggleSwitch) => {
2424
const childJSXWithTooltip = (
2525
<CustomTooltip
2626
placement={"auto"}
27-
tooltipId="matomoAnonAnalyticsTooltip"
27+
tooltipId={ id + "Tooltip"}
2828
tooltipClasses="text-nowrap"
2929
tooltipText={<FormattedMessage id={tooltipTextId} />}
3030
>
3131
<button
3232
data-id={ id + "Switch"}
33-
id='matomoAnonAnalyticsSwitch'
33+
id={id}
3434
className={`btn ${isOn ? onstyle : offstyle}`}
3535
onClick={() => { if(!disabled) onClick()}}
3636
disabled = {disabled || false}
@@ -43,7 +43,7 @@ export const ToggleSwitch = (props: IToggleSwitch) => {
4343
const childJSXWithoutTooltip = (
4444
<button
4545
data-id={ id + "Switch"}
46-
id='matomoAnonAnalyticsSwitch'
46+
id={id}
4747
className={`btn ${isOn ? onstyle : offstyle}`}
4848
onClick={() => { if(!disabled) onClick()}}
4949
disabled = {disabled || false}

0 commit comments

Comments
 (0)