mirror of
https://github.com/Equicord/Equicord.git
synced 2025-06-14 09:03:03 -04:00
Fixes and make guild tooltip show users inside hidden voice channels (#613)
* Fix #509 * Fix #597 * Fix #594
This commit is contained in:
parent
4aff11421f
commit
e36f4e5b0a
5 changed files with 23 additions and 10 deletions
|
@ -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
|
||||
}}>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue