[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
|
// Discord
|
||||||
export const Forms = findByProps("Form", "FormSection");
|
export const Forms = findByProps("Form", "FormSection");
|
||||||
export const General = findByProps("Button", "Text", "View");
|
export const General = findByProps("Button", "Text", "View");
|
||||||
export const Search = findByDisplayName("StaticSearchBarContainer");
|
export const Search = findByName("StaticSearchBarContainer");
|
||||||
export const Alert = findByProps("alertDarkStyles", "alertLightStyles").default;
|
export const Alert = findByProps("alertDarkStyles", "alertLightStyles").default;
|
||||||
|
|
||||||
// Vendetta
|
// Vendetta
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
import { NavigationNative, i18n } from "@metro/common";
|
import { NavigationNative, i18n } from "@metro/common";
|
||||||
import { findByDisplayName } from "@metro/filters";
|
import { findByName } from "@metro/filters";
|
||||||
import { after } from "@lib/patcher";
|
import { after } from "@lib/patcher";
|
||||||
import { installPlugin } from "@lib/plugins";
|
import { installPlugin } from "@lib/plugins";
|
||||||
import { installTheme } from "@lib/themes";
|
import { installTheme } from "@lib/themes";
|
||||||
|
@ -13,8 +13,8 @@ import Themes from "@ui/settings/pages/Themes";
|
||||||
import Developer from "@ui/settings/pages/Developer";
|
import Developer from "@ui/settings/pages/Developer";
|
||||||
import AssetBrowser from "@ui/settings/pages/AssetBrowser";
|
import AssetBrowser from "@ui/settings/pages/AssetBrowser";
|
||||||
|
|
||||||
const screensModule = findByDisplayName("getScreens", false);
|
const screensModule = findByName("getScreens", false);
|
||||||
const settingsModule = findByDisplayName("UserSettingsOverviewWrapper", false);
|
const settingsModule = findByName("UserSettingsOverviewWrapper", false);
|
||||||
|
|
||||||
export default function initSettings() {
|
export default function initSettings() {
|
||||||
const patches = new Array<Function>;
|
const patches = new Array<Function>;
|
||||||
|
|
Loading…
Reference in a new issue