From 651732bc8e58dd6c41a6d0997ce1375424129168 Mon Sep 17 00:00:00 2001 From: Tharki-God Date: Tue, 26 Mar 2024 07:28:51 +0530 Subject: [PATCH] haha --- src/Components/Settings.tsx | 2 ++ src/index.ts | 6 +++--- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/src/Components/Settings.tsx b/src/Components/Settings.tsx index 9c47bb1..63de995 100644 --- a/src/Components/Settings.tsx +++ b/src/Components/Settings.tsx @@ -22,3 +22,5 @@ export const Settings = () => { ); }; + +export default { registerSettings, Settings }; diff --git a/src/index.ts b/src/index.ts index 3a25e70..57bb5b9 100644 --- a/src/index.ts +++ b/src/index.ts @@ -1,17 +1,17 @@ import { Injector, Logger, settings } from "replugged"; import { defaultSettings } from "./lib/consts"; -import { registerSettings } from "./Components/Settings"; import "./style.css"; export const PluginLogger = Logger.plugin("Token"); export const PluginInjector = new Injector(); export const PluginInjectorUtils = PluginInjector.utils; export const SettingValues = await settings.init("dev.tharki.Token", defaultSettings); +import Settings from "./Components/Settings"; import TokenMenuItem from "./Components/MenuItem"; import HBCM from "./lib/HomeButtonContextMenuApi"; -import Injections from "./patches/index"; +import Injections from "./patches"; export const start = (): void => { - registerSettings(); + Settings.registerSettings(); HBCM.getAPI().addItem("Token", TokenMenuItem); Injections.applyInjections(); };