Skip to content

Commit 4424963

Browse files
ioedeveloperAniket-Engg
authored andcommitted
Use divinstead
1 parent f593f9f commit 4424963

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

libs/remix-ui/plugin-manager/src/lib/components/PluginCard.tsx

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -34,13 +34,15 @@ function PluginCard({ profile, isActive, isLoading, togglePlugin }: PluginCardPr
3434
<span className="fw-bold" style={{ color: isDark ? 'white' : 'black' }}>{profile.displayName || profile.name}</span>
3535
</div>
3636
<div className="toggle-container">
37-
<ToggleSwitch
38-
id={`toggleSwitch-${profile.name}`}
39-
isOn={isActive}
37+
<div
4038
data-id={`pluginManagerComponent${isActive ? 'Deactivate' : 'Activate'}Button${profile.name}`}
4139
onClick={() => togglePlugin(profile.name)}
42-
aria-label={`${isActive ? 'Deactivate' : 'Activate'} ${profile.displayName || profile.name}`}
43-
/>
40+
aria-label={`${isActive ? 'Deactivate' : 'Activate'} ${profile.displayName || profile.name}`}>
41+
<ToggleSwitch
42+
id={`toggleSwitch-${profile.name}`}
43+
isOn={isActive}
44+
/>
45+
</div>
4446
</div>
4547
</div>
4648

0 commit comments

Comments
 (0)