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(); };