-
Notifications
You must be signed in to change notification settings - Fork 35
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
AAGaming
committed
Jun 8, 2022
1 parent
dd5c42c
commit 24244f6
Showing
2 changed files
with
4 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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>>; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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>>; |