[Metro] Actually use findByName :husk:
This commit is contained in:
parent
ef702fb5ca
commit
ebbfe83674
2 changed files with 5 additions and 5 deletions
|
@ -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
|
||||
|
|
|
@ -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<Function>;
|
||||
|
|
Loading…
Reference in a new issue