aboutsummaryrefslogtreecommitdiff
path: root/src/components/PluginSettings/index.tsx
diff options
context:
space:
mode:
authorNuckyz <61953774+Nuckyz@users.noreply.github.com>2023-04-04 10:26:53 -0300
committerGitHub <noreply@github.com>2023-04-04 15:26:53 +0200
commit96dc2e12d030ac6d725bdfc58f1c47d35aae67a8 (patch)
tree54085a1db7d8bdf07d6694c16b38fe50ea2f859b /src/components/PluginSettings/index.tsx
parentd931790ed0dd41b22df01584dc63d9b2b78ab6a6 (diff)
downloadVencord-96dc2e12d030ac6d725bdfc58f1c47d35aae67a8.tar.gz
Vencord-96dc2e12d030ac6d725bdfc58f1c47d35aae67a8.tar.bz2
Vencord-96dc2e12d030ac6d725bdfc58f1c47d35aae67a8.zip
Fix Web & Game Activity Toggle (#777)
Diffstat (limited to 'src/components/PluginSettings/index.tsx')
-rw-r--r--src/components/PluginSettings/index.tsx3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/components/PluginSettings/index.tsx b/src/components/PluginSettings/index.tsx
index 02d89f8..f3a5cd3 100644
--- a/src/components/PluginSettings/index.tsx
+++ b/src/components/PluginSettings/index.tsx
@@ -46,6 +46,7 @@ const cl = classNameFactory("vc-plugins-");
const logger = new Logger("PluginSettings", "#a6d189");
const InputStyles = findByPropsLazy("inputDefault", "inputWrapper");
+const ButtonClasses = findByPropsLazy("button", "disabled", "enabled");
const CogWheel = LazyComponent(() => findByCode("18.564C15.797 19.099 14.932 19.498 14 19.738V22H10V19.738C9.069"));
const InfoIcon = LazyComponent(() => findByCode("4.4408921e-16 C4.4771525,-1.77635684e-15 4.4408921e-16"));
@@ -154,7 +155,7 @@ function PluginCard({ plugin, disabled, onRestartNeeded, onMouseEnter, onMouseLe
<Text variant="text-md/bold" className={cl("name")}>
{plugin.name}{isNew && <Badge text="NEW" color="#ED4245" />}
</Text>
- <button role="switch" onClick={() => openModal()} className={classes("button-12Fmur", cl("info-button"))}>
+ <button role="switch" onClick={() => openModal()} className={classes(ButtonClasses.button, cl("info-button"))}>
{plugin.options
? <CogWheel />
: <InfoIcon width="24" height="24" />}