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;