aboutsummaryrefslogtreecommitdiff
path: root/src/components
diff options
context:
space:
mode:
Diffstat (limited to 'src/components')
-rw-r--r--src/components/PluginSettings/index.tsx4
-rw-r--r--src/components/VencordSettings/BackupRestoreTab.tsx2
-rw-r--r--src/components/VencordSettings/ThemesTab.tsx2
-rw-r--r--src/components/VencordSettings/index.tsx4
4 files changed, 7 insertions, 5 deletions
diff --git a/src/components/PluginSettings/index.tsx b/src/components/PluginSettings/index.tsx
index f439753..34e6828 100644
--- a/src/components/PluginSettings/index.tsx
+++ b/src/components/PluginSettings/index.tsx
@@ -326,7 +326,9 @@ export default ErrorBoundary.wrap(function PluginSettings() {
<div className={cl("grid")}>
{plugins}
</div>
- <Forms.FormDivider />
+
+ <Forms.FormDivider className={Margins.marginTop20} />
+
<Forms.FormTitle tag="h5" className={classes(Margins.marginTop20, Margins.marginBottom8)}>
Required Plugins
</Forms.FormTitle>
diff --git a/src/components/VencordSettings/BackupRestoreTab.tsx b/src/components/VencordSettings/BackupRestoreTab.tsx
index 546db35..2ea0452 100644
--- a/src/components/VencordSettings/BackupRestoreTab.tsx
+++ b/src/components/VencordSettings/BackupRestoreTab.tsx
@@ -45,7 +45,7 @@ function BackupRestoreTab() {
</Text>
<Flex>
<Button
- onClick={uploadSettingsBackup}
+ onClick={() => uploadSettingsBackup()}
size={Button.Sizes.SMALL}
>
Import Settings
diff --git a/src/components/VencordSettings/ThemesTab.tsx b/src/components/VencordSettings/ThemesTab.tsx
index 69fcc29..b59590c 100644
--- a/src/components/VencordSettings/ThemesTab.tsx
+++ b/src/components/VencordSettings/ThemesTab.tsx
@@ -75,7 +75,7 @@ function Validators({ themeLinks }: { themeLinks: string[]; }) {
export default ErrorBoundary.wrap(function () {
const settings = useSettings();
- const ref = React.useRef<HTMLTextAreaElement>();
+ const ref = React.useRef<HTMLTextAreaElement>(null);
function onBlur() {
settings.themeLinks = [...new Set(
diff --git a/src/components/VencordSettings/index.tsx b/src/components/VencordSettings/index.tsx
index 2ab9407..acd81c3 100644
--- a/src/components/VencordSettings/index.tsx
+++ b/src/components/VencordSettings/index.tsx
@@ -21,7 +21,7 @@ import "./settingsStyles.css";
import { classNameFactory } from "@api/Styles";
import ErrorBoundary from "@components/ErrorBoundary";
import { findByCodeLazy } from "@webpack";
-import { Forms, Router, Text } from "@webpack/common";
+import { Forms, SettingsRouter, Text } from "@webpack/common";
import BackupRestoreTab from "./BackupRestoreTab";
import PluginsTab from "./PluginsTab";
@@ -65,7 +65,7 @@ function Settings(props: SettingsProps) {
look={TabBar.Looks.BRAND}
className={cl("tab-bar")}
selectedItem={tab}
- onItemSelect={Router.open}
+ onItemSelect={SettingsRouter.open}
>
{Object.entries(SettingsTabs).map(([key, { name, component }]) => {
if (!component) return null;