diff options
author | Ven <vendicated@riseup.net> | 2022-11-07 22:28:29 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-11-07 22:28:29 +0100 |
commit | 6a8564089bea162d9c4d52925eb1239b6b270fa4 (patch) | |
tree | b411e223ffab2752175e2e883908cd814f73455d /src/utils | |
parent | 7d5ade21fc9b56d21e2eb9e5b0d35502432adaa2 (diff) | |
download | Vencord-6a8564089bea162d9c4d52925eb1239b6b270fa4.tar.gz Vencord-6a8564089bea162d9c4d52925eb1239b6b270fa4.tar.bz2 Vencord-6a8564089bea162d9c4d52925eb1239b6b270fa4.zip |
SpotifyControls plugin (#190)
Diffstat (limited to 'src/utils')
-rw-r--r-- | src/utils/misc.tsx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/utils/misc.tsx b/src/utils/misc.tsx index e52a57f..55e0c22 100644 --- a/src/utils/misc.tsx +++ b/src/utils/misc.tsx @@ -74,9 +74,9 @@ export function useAwaiter<T>(factory: () => Promise<T>, fallbackValue: T | null * @param factory Function returning a Component * @returns Result of factory function */ -export function LazyComponent<T extends JSX.IntrinsicAttributes = any>(factory: () => React.ComponentType<T>) { +export function LazyComponent<T = any>(factory: () => React.ComponentType<T>) { const get = makeLazy(factory); - return (props: T) => { + return (props: T & JSX.IntrinsicAttributes) => { const Component = get(); return <Component {...props} />; }; |