From 24244f6e91e39a11bb964ee2779662084dcd0fd0 Mon Sep 17 00:00:00 2001 From: AAGaming Date: Wed, 8 Jun 2022 17:54:20 -0400 Subject: [PATCH] fix(spinners): add SVG props --- src/deck-components/Spinner.tsx | 4 ++-- src/deck-components/SteamSpinner.tsx | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/deck-components/Spinner.tsx b/src/deck-components/Spinner.tsx index e70b5c66..7fa76a02 100755 --- a/src/deck-components/Spinner.tsx +++ b/src/deck-components/Spinner.tsx @@ -1,8 +1,8 @@ -import { FC } from 'react'; +import { FC, SVGAttributes } from 'react'; import { IconsModule } from '../webpack'; // TODO type this and other icons? export const Spinner = Object.values(IconsModule).find((mod: any) => mod?.toString && /Spinner\)}\),.\.createElement\(\"path\",{d:\"M18 /.test(mod.toString()) -) as FC<{}>; \ No newline at end of file +) as FC>; \ No newline at end of file diff --git a/src/deck-components/SteamSpinner.tsx b/src/deck-components/SteamSpinner.tsx index 925de7f0..b758ed28 100755 --- a/src/deck-components/SteamSpinner.tsx +++ b/src/deck-components/SteamSpinner.tsx @@ -1,4 +1,4 @@ -import { FC } from 'react'; +import { FC, SVGAttributes } from 'react'; import { findModuleChild } from '../webpack'; export const SteamSpinner = findModuleChild((m) => { @@ -6,4 +6,4 @@ export const SteamSpinner = findModuleChild((m) => { for (let prop in m) { if (m[prop]?.toString()?.includes("Steam Spinner") && m[prop].toString().includes("PreloadThrobber")) return m[prop] } -}) as FC<{}>; \ No newline at end of file +}) as FC>; \ No newline at end of file