mirror of
https://github.com/SteamDeckHomebrew/decky-frontend-lib.git
synced 2026-05-25 20:38:52 +02:00
fix typescript AGAIN, fix icons, ignore pnpm lock
This commit is contained in:
@@ -12,5 +12,5 @@ import { IconsModule } from '../webpack';
|
||||
// }
|
||||
|
||||
export const Spinner = Object.values(IconsModule).find((mod: any) =>
|
||||
mod?.toString()?.includes("Spinner)}),a.createElement(\"path\",{d:\"M18 "),
|
||||
mod?.toString && /Spinner\)}\),.\.createElement\(\"path\",{d:\"M18 /.test(mod.toString())
|
||||
) as FC<{}>;
|
||||
@@ -58,14 +58,13 @@ export const CommonUIModule = allModules.find((m: Module) => {
|
||||
return false;
|
||||
});
|
||||
|
||||
export const IconsModule = allModules.find((m: Module) => {
|
||||
if (typeof m !== "object") return undefined;
|
||||
export const IconsModule = findModule((m: Module) => {
|
||||
if (typeof m !== "object") return false;
|
||||
for (let prop in m) {
|
||||
if (m[prop]?.toString()?.includes("Spinner)}),a.createElement(\"path\",{d:\"M18 ")) return true;
|
||||
if (m[prop]?.toString && /Spinner\)}\),.\.createElement\(\"path\",{d:\"M18 /.test(m[prop].toString())) return true;
|
||||
}
|
||||
return false;
|
||||
})
|
||||
|
||||
export const Router = findModuleChild((m: Module) => {
|
||||
if (typeof m !== "object") return undefined;
|
||||
for (let prop in m) {
|
||||
|
||||
Reference in New Issue
Block a user