diff options
author | Ven <vendicated@riseup.net> | 2023-01-25 03:25:29 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-01-25 03:25:29 +0100 |
commit | f19504f8282702bc6945a3d97acbee1a1fbe1b8d (patch) | |
tree | 0a84a831dbd4e3fa040b6b1287db4d309de7c5d9 /src/plugins | |
parent | a38ac956dfaf53711a4cddea73ae1b8cf617211a (diff) | |
download | Vencord-f19504f8282702bc6945a3d97acbee1a1fbe1b8d.tar.gz Vencord-f19504f8282702bc6945a3d97acbee1a1fbe1b8d.tar.bz2 Vencord-f19504f8282702bc6945a3d97acbee1a1fbe1b8d.zip |
split up webpack commons into categories & type everything (#455)
Diffstat (limited to 'src/plugins')
-rw-r--r-- | src/plugins/settings.tsx | 4 | ||||
-rw-r--r-- | src/plugins/spotifyControls/SpotifyStore.ts | 4 | ||||
-rw-r--r-- | src/plugins/viewRaw.tsx | 2 |
3 files changed, 3 insertions, 7 deletions
diff --git a/src/plugins/settings.tsx b/src/plugins/settings.tsx index 36bf525..67d1f8d 100644 --- a/src/plugins/settings.tsx +++ b/src/plugins/settings.tsx @@ -22,7 +22,7 @@ import { Devs } from "@utils/constants"; import Logger from "@utils/Logger"; import { LazyComponent } from "@utils/misc"; import definePlugin, { OptionType } from "@utils/types"; -import { Router } from "@webpack/common"; +import { SettingsRouter } from "@webpack/common"; import gitHash from "~git-hash"; @@ -69,7 +69,7 @@ export default definePlugin({ }], makeSettingsCategories({ ID }: { ID: Record<string, unknown>; }) { - const makeOnClick = (tab: string) => () => Router.open(tab); + const makeOnClick = (tab: string) => () => SettingsRouter.open(tab); const cats = [ { diff --git a/src/plugins/spotifyControls/SpotifyStore.ts b/src/plugins/spotifyControls/SpotifyStore.ts index 641ba1a..ceac577 100644 --- a/src/plugins/spotifyControls/SpotifyStore.ts +++ b/src/plugins/spotifyControls/SpotifyStore.ts @@ -76,10 +76,6 @@ export const SpotifyStore = proxyLazy(() => { const API_BASE = "https://api.spotify.com/v1/me/player"; class SpotifyStore extends Store { - constructor(dispatcher: any, handlers: any) { - super(dispatcher, handlers); - } - public mPosition = 0; private start = 0; diff --git a/src/plugins/viewRaw.tsx b/src/plugins/viewRaw.tsx index fc7a42a..5105203 100644 --- a/src/plugins/viewRaw.tsx +++ b/src/plugins/viewRaw.tsx @@ -98,7 +98,7 @@ function openViewRawModal(msg: Message) { <> <Forms.FormTitle tag="h5">Content</Forms.FormTitle> <CodeBlock content={msg.content} lang="" /> - <Forms.FormDivider classes={Margins.marginBottom20} /> + <Forms.FormDivider className={Margins.marginBottom20} /> </> )} |