From e6ccb751a04ce383c998d717196340c1b4b1da5f Mon Sep 17 00:00:00 2001 From: Lewis Crichton Date: Wed, 1 Mar 2023 20:35:08 +0000 Subject: [PATCH] Fix for latest Discord Update (#550) Co-authored-by: Nuckyz <61953774+Nuckyz@users.noreply.github.com> Co-authored-by: Vendicated --- src/components/PatchHelper.tsx | 11 ++++++----- src/components/PluginSettings/index.tsx | 15 ++++++++------- .../VencordSettings/BackupRestoreTab.tsx | 9 +++++---- src/components/VencordSettings/ThemesTab.tsx | 7 ++++--- src/components/VencordSettings/Updater.tsx | 13 +++++++------ src/components/VencordSettings/index.tsx | 7 ++++--- src/plugins/apiBadges.tsx | 5 +++-- src/plugins/emoteCloner.tsx | 5 +++-- src/plugins/typingTweaks.tsx | 2 +- src/plugins/vcNarrator.tsx | 5 +++-- src/plugins/viewRaw.tsx | 5 +++-- src/webpack/common/components.ts | 4 ---- src/webpack/common/types/components.d.ts | 3 --- 13 files changed, 47 insertions(+), 44 deletions(-) diff --git a/src/components/PatchHelper.tsx b/src/components/PatchHelper.tsx index cb609802..65245283 100644 --- a/src/components/PatchHelper.tsx +++ b/src/components/PatchHelper.tsx @@ -17,10 +17,11 @@ */ import { debounce } from "@utils/debounce"; +import { Margins } from "@utils/margins"; import { makeCodeblock } from "@utils/misc"; import { canonicalizeMatch, canonicalizeReplace, ReplaceFn } from "@utils/patches"; import { search } from "@webpack"; -import { Button, Clipboard, Forms, Margins, Parser, React, Switch, Text, TextInput } from "@webpack/common"; +import { Button, Clipboard, Forms, Parser, React, Switch, Text, TextInput } from "@webpack/common"; import { CheckedTextInput } from "./CheckedTextInput"; import ErrorBoundary from "./ErrorBoundary"; @@ -128,7 +129,7 @@ function ReplacementComponent({ module, match, replacement, setReplacementError )} {!!diff?.length && ( - diff --git a/src/components/PluginSettings/index.tsx b/src/components/PluginSettings/index.tsx index 4e64eb87..3d69a607 100644 --- a/src/components/PluginSettings/index.tsx +++ b/src/components/PluginSettings/index.tsx @@ -30,11 +30,12 @@ import PluginModal from "@components/PluginSettings/PluginModal"; import { Switch } from "@components/Switch"; import { ChangeList } from "@utils/ChangeList"; import Logger from "@utils/Logger"; +import { Margins } from "@utils/margins"; import { classes, LazyComponent, useAwaiter } from "@utils/misc"; import { openModalLazy } from "@utils/modal"; import { Plugin } from "@utils/types"; import { findByCode, findByPropsLazy } from "@webpack"; -import { Alerts, Button, Card, Forms, Margins, Parser, React, Select, Text, TextInput, Toasts, Tooltip } from "@webpack/common"; +import { Alerts, Button, Card, Forms, Parser, React, Select, Text, TextInput, Toasts, Tooltip } from "@webpack/common"; import Plugins from "~plugins"; @@ -296,15 +297,15 @@ export default ErrorBoundary.wrap(function PluginSettings() { } return ( - + - + Filters
- +