From 6a8564089bea162d9c4d52925eb1239b6b270fa4 Mon Sep 17 00:00:00 2001 From: Ven Date: Mon, 7 Nov 2022 22:28:29 +0100 Subject: SpotifyControls plugin (#190) --- src/utils/misc.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/utils') 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(factory: () => Promise, fallbackValue: T | null * @param factory Function returning a Component * @returns Result of factory function */ -export function LazyComponent(factory: () => React.ComponentType) { +export function LazyComponent(factory: () => React.ComponentType) { const get = makeLazy(factory); - return (props: T) => { + return (props: T & JSX.IntrinsicAttributes) => { const Component = get(); return ; }; -- cgit