From e6ccb751a04ce383c998d717196340c1b4b1da5f Mon Sep 17 00:00:00 2001 From: Lewis Crichton Date: Wed, 1 Mar 2023 20:35:08 +0000 Subject: Fix for latest Discord Update (#550) Co-authored-by: Nuckyz <61953774+Nuckyz@users.noreply.github.com> Co-authored-by: Vendicated --- src/components/VencordSettings/BackupRestoreTab.tsx | 9 +++++---- src/components/VencordSettings/ThemesTab.tsx | 7 ++++--- src/components/VencordSettings/Updater.tsx | 13 +++++++------ src/components/VencordSettings/index.tsx | 7 ++++--- 4 files changed, 20 insertions(+), 16 deletions(-) (limited to 'src/components/VencordSettings') diff --git a/src/components/VencordSettings/BackupRestoreTab.tsx b/src/components/VencordSettings/BackupRestoreTab.tsx index 2ea0452..7a3729d 100644 --- a/src/components/VencordSettings/BackupRestoreTab.tsx +++ b/src/components/VencordSettings/BackupRestoreTab.tsx @@ -18,25 +18,26 @@ import ErrorBoundary from "@components/ErrorBoundary"; import { Flex } from "@components/Flex"; +import { Margins } from "@utils/margins"; import { classes } from "@utils/misc"; import { downloadSettingsBackup, uploadSettingsBackup } from "@utils/settingsSync"; -import { Button, Card, Forms, Margins, Text } from "@webpack/common"; +import { Button, Card, Forms, Text } from "@webpack/common"; function BackupRestoreTab() { return ( - + Warning Importing a settings file will overwrite your current settings. - + You can import and export your Vencord settings as a JSON file. This allows you to easily transfer your settings to another device, or recover your settings after reinstalling Vencord or Discord. - + Settings Export contains:
  • — Custom QuickCSS
  • diff --git a/src/components/VencordSettings/ThemesTab.tsx b/src/components/VencordSettings/ThemesTab.tsx index b2cf85b..b8381f7 100644 --- a/src/components/VencordSettings/ThemesTab.tsx +++ b/src/components/VencordSettings/ThemesTab.tsx @@ -19,9 +19,10 @@ import { useSettings } from "@api/settings"; import ErrorBoundary from "@components/ErrorBoundary"; import { Link } from "@components/Link"; +import { Margins } from "@utils/margins"; import { useAwaiter } from "@utils/misc"; import { findLazy } from "@webpack"; -import { Card, Forms, Margins, React, TextArea } from "@webpack/common"; +import { Card, Forms, React, TextArea } from "@webpack/common"; const TextAreaProps = findLazy(m => typeof m.textarea === "string"); @@ -51,7 +52,7 @@ function Validators({ themeLinks }: { themeLinks: string[]; }) { return ( <> - Validator + Validator This section will tell you whether your themes can successfully be loaded
    {themeLinks.map(link => ( @@ -93,7 +94,7 @@ export default ErrorBoundary.wrap(function () { Paste links to .css / .theme.css files here One link per line Make sure to use the raw links or github.io links! - + Find Themes:
    diff --git a/src/components/VencordSettings/Updater.tsx b/src/components/VencordSettings/Updater.tsx index b5243f2..caed4f7 100644 --- a/src/components/VencordSettings/Updater.tsx +++ b/src/components/VencordSettings/Updater.tsx @@ -22,9 +22,10 @@ import { ErrorCard } from "@components/ErrorCard"; import { Flex } from "@components/Flex"; import { handleComponentFailed } from "@components/handleComponentFailed"; import { Link } from "@components/Link"; +import { Margins } from "@utils/margins"; import { classes, useAwaiter } from "@utils/misc"; import { changes, checkForUpdates, getRepo, isNewer, rebuild, update, updateError, UpdateLogger } from "@utils/updater"; -import { Alerts, Button, Card, Forms, Margins, Parser, React, Switch, Toasts } from "@webpack/common"; +import { Alerts, Button, Card, Forms, Parser, React, Switch, Toasts } from "@webpack/common"; import gitHash from "~git-hash"; @@ -109,14 +110,14 @@ function Updatable(props: CommonProps) { ) : ( - + {isOutdated ? `There are ${updates.length} Updates` : "Up to Date!"} )} {isOutdated && } - + {isOutdated &&