From ebbfe8367415a33ef85d7b8c6f2f0e4bf017e80f Mon Sep 17 00:00:00 2001 From: Beef Date: Thu, 23 Mar 2023 23:14:13 +0000 Subject: [PATCH] [Metro] Actually use findByName :husk: --- src/ui/components/index.ts | 4 ++-- src/ui/settings/index.tsx | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/ui/components/index.ts b/src/ui/components/index.ts index c1ee49a..63ddc61 100644 --- a/src/ui/components/index.ts +++ b/src/ui/components/index.ts @@ -1,9 +1,9 @@ -import { findByDisplayName, findByProps } from "@metro/filters"; +import { findByName, findByProps } from "@metro/filters"; // Discord export const Forms = findByProps("Form", "FormSection"); export const General = findByProps("Button", "Text", "View"); -export const Search = findByDisplayName("StaticSearchBarContainer"); +export const Search = findByName("StaticSearchBarContainer"); export const Alert = findByProps("alertDarkStyles", "alertLightStyles").default; // Vendetta diff --git a/src/ui/settings/index.tsx b/src/ui/settings/index.tsx index 0ab4fbb..ac1c47e 100644 --- a/src/ui/settings/index.tsx +++ b/src/ui/settings/index.tsx @@ -1,5 +1,5 @@ import { NavigationNative, i18n } from "@metro/common"; -import { findByDisplayName } from "@metro/filters"; +import { findByName } from "@metro/filters"; import { after } from "@lib/patcher"; import { installPlugin } from "@lib/plugins"; import { installTheme } from "@lib/themes"; @@ -13,8 +13,8 @@ import Themes from "@ui/settings/pages/Themes"; import Developer from "@ui/settings/pages/Developer"; import AssetBrowser from "@ui/settings/pages/AssetBrowser"; -const screensModule = findByDisplayName("getScreens", false); -const settingsModule = findByDisplayName("UserSettingsOverviewWrapper", false); +const screensModule = findByName("getScreens", false); +const settingsModule = findByName("UserSettingsOverviewWrapper", false); export default function initSettings() { const patches = new Array;