Skip to content

Commit

Permalink
fix(spinners): add SVG props
Browse files Browse the repository at this point in the history
  • Loading branch information
AAGaming committed Jun 8, 2022
1 parent dd5c42c commit 24244f6
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/deck-components/Spinner.tsx
Original file line number Diff line number Diff line change
@@ -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<{}>;
) as FC<SVGAttributes<SVGElement>>;
4 changes: 2 additions & 2 deletions src/deck-components/SteamSpinner.tsx
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import { FC } from 'react';
import { FC, SVGAttributes } from 'react';
import { findModuleChild } from '../webpack';

export const SteamSpinner = findModuleChild((m) => {
if (typeof m !== "object") return undefined;
for (let prop in m) {
if (m[prop]?.toString()?.includes("Steam Spinner") && m[prop].toString().includes("PreloadThrobber")) return m[prop]
}
}) as FC<{}>;
}) as FC<SVGAttributes<SVGElement>>;

0 comments on commit 24244f6

Please sign in to comment.