diff options
author | Ven <vendicated@riseup.net> | 2023-02-10 22:33:34 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-02-10 22:33:34 +0100 |
commit | 1d995e58f515dbeb908ba34bf70f829bfd3ccfac (patch) | |
tree | df8c540f5656028502288ab4e58e41754f723bc9 /src/plugins | |
parent | 6114bc6b168607613d06ae8fb4f29e74c763a417 (diff) | |
download | Vencord-1d995e58f515dbeb908ba34bf70f829bfd3ccfac.tar.gz Vencord-1d995e58f515dbeb908ba34bf70f829bfd3ccfac.tar.bz2 Vencord-1d995e58f515dbeb908ba34bf70f829bfd3ccfac.zip |
Notification API (#467)
Co-authored-by: Ven <vendicated@riseup.net>
Co-authored-by: afn <hey@afn.lol>
Co-authored-by: afn <afnzmn@gmail.com>
Diffstat (limited to 'src/plugins')
-rw-r--r-- | src/plugins/spotifyControls/PlayerComponent.tsx | 12 |
1 files changed, 2 insertions, 10 deletions
diff --git a/src/plugins/spotifyControls/PlayerComponent.tsx b/src/plugins/spotifyControls/PlayerComponent.tsx index f6ad08b..439ecc2 100644 --- a/src/plugins/spotifyControls/PlayerComponent.tsx +++ b/src/plugins/spotifyControls/PlayerComponent.tsx @@ -23,8 +23,8 @@ import { Flex } from "@components/Flex"; import { Link } from "@components/Link"; import { debounce } from "@utils/debounce"; import { classes, LazyComponent } from "@utils/misc"; -import { filters, find, findByCodeLazy } from "@webpack"; -import { ContextMenu, FluxDispatcher, Forms, Menu, React, useEffect, useState } from "@webpack/common"; +import { filters, find } from "@webpack"; +import { ContextMenu, FluxDispatcher, Forms, Menu, React, useEffect, useState, useStateFromStores } from "@webpack/common"; import { SpotifyStore, Track } from "./SpotifyStore"; @@ -37,14 +37,6 @@ function msToHuman(ms: number) { return `${m.toString().padStart(2, "0")}:${s.toString().padStart(2, "0")}`; } -const useStateFromStores: <T>( - stores: typeof SpotifyStore[], - mapper: () => T, - idk?: null, - compare?: (old: T, newer: T) => boolean -) => T - = findByCodeLazy("useStateFromStores"); - function Svg(path: string, label: string) { return () => ( <svg |