diff options
author | Nuckyz <61953774+Nuckyz@users.noreply.github.com> | 2023-03-19 22:03:33 -0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-03-19 22:03:33 -0300 |
commit | e36f4e5b0aed93f6b24a42eb738fc5f38579bf3c (patch) | |
tree | ab16d02f33e949fc34f9c0bc457fc8f861b931aa /src/components | |
parent | 4aff11421f1cccaf34a7c983fd8dc9a841042947 (diff) | |
download | Vencord-e36f4e5b0aed93f6b24a42eb738fc5f38579bf3c.tar.gz Vencord-e36f4e5b0aed93f6b24a42eb738fc5f38579bf3c.tar.bz2 Vencord-e36f4e5b0aed93f6b24a42eb738fc5f38579bf3c.zip |
Fixes and make guild tooltip show users inside hidden voice channels (#613)
* Fix #509
* Fix #597
* Fix #594
Diffstat (limited to 'src/components')
-rw-r--r-- | src/components/Switch.tsx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/components/Switch.tsx b/src/components/Switch.tsx index 11a3fe0..10904e1 100644 --- a/src/components/Switch.tsx +++ b/src/components/Switch.tsx @@ -18,6 +18,7 @@ import "./Switch.css"; +import { classes } from "@utils/misc"; import { findByPropsLazy } from "@webpack"; interface SwitchProps { @@ -33,7 +34,7 @@ const SwitchClasses = findByPropsLazy("slider", "input", "container"); export function Switch({ checked, onChange, disabled }: SwitchProps) { return ( <div> - <div className={`${SwitchClasses.container} default-colors`} style={{ + <div className={classes(SwitchClasses.container, "default-colors", checked ? SwitchClasses.checked : void 0)} style={{ backgroundColor: checked ? SWITCH_ON : SWITCH_OFF, opacity: disabled ? 0.3 : 1 }}> |