diff --git a/package.json b/package.json index 4f05e969d..673e29b29 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "vencord", "private": "true", - "version": "1.13.0", + "version": "1.13.1", "description": "The cutest Discord client mod", "homepage": "https://github.com/Vendicated/Vencord#readme", "bugs": { diff --git a/src/components/FormSwitch.css b/src/components/FormSwitch.css index d2a90064f..38cbea8d7 100644 --- a/src/components/FormSwitch.css +++ b/src/components/FormSwitch.css @@ -11,6 +11,12 @@ } } +.vc-form-switch-disabled { + opacity: 0.5; + pointer-events: none; + cursor: not-allowed; +} + .vc-form-switch-text { display: flex; flex-direction: column; diff --git a/src/components/FormSwitch.tsx b/src/components/FormSwitch.tsx index 12b0ab127..3f207c2b3 100644 --- a/src/components/FormSwitch.tsx +++ b/src/components/FormSwitch.tsx @@ -27,7 +27,7 @@ export interface FormSwitchProps { export function FormSwitch({ onChange, title, value, description, disabled, className, hideBorder }: FormSwitchProps) { return (
-
+
{title} {description && {description}} diff --git a/src/webpack/common/components.ts b/src/webpack/common/components.ts index 38fb5eb3e..c4e0ac8e9 100644 --- a/src/webpack/common/components.ts +++ b/src/webpack/common/components.ts @@ -39,7 +39,7 @@ export const Forms = { export const Card = waitForComponent("Card", filters.componentByCode(".editable),", ".outline:")); export const Button = waitForComponent("Button", filters.componentByCode("#{intl::A11Y_LOADING_STARTED}))),!1")); /** @deprecated Use FormSwitch from Vencord */ -export const Switch = FormSwitchCompat; +export const Switch = FormSwitchCompat as never; export const Checkbox = waitForComponent("Checkbox", filters.componentByCode(".checkboxWrapperDisabled:")); const Tooltips = mapMangledModuleLazy(".tooltipTop,bottom:", {