diff --git a/src/patches/MessageLongPressActionSheet.tsx b/src/patches/MessageLongPressActionSheet.tsx index 4ecc30c..13d194e 100644 --- a/src/patches/MessageLongPressActionSheet.tsx +++ b/src/patches/MessageLongPressActionSheet.tsx @@ -1,4 +1,4 @@ -import { findByProps } from "@vendetta/metro"; +import { findByProps, findByName } from "@vendetta/metro"; import { React } from "@vendetta/metro/common"; import { after, before } from "@vendetta/patcher"; import { storage } from "@vendetta/plugin"; @@ -9,7 +9,8 @@ import { showToast } from "@vendetta/ui/toasts"; const LazyActionSheet = findByProps("openLazy", "hideActionSheet"); // Components -const { FormRow: { default: FormRow, Icon } } = Forms; +const { FormRow } = Forms; +const Icon = findByName("Icon"); const JSON_CODEBLOCK_PATTERN = /^```(?:json)\n([\s\S]*?)```$/gm diff --git a/src/ui/components/AddRuleButton.tsx b/src/ui/components/AddRuleButton.tsx index bf56177..6b43d73 100644 --- a/src/ui/components/AddRuleButton.tsx +++ b/src/ui/components/AddRuleButton.tsx @@ -1,9 +1,10 @@ -import { Forms, General } from "@vendetta/ui/components"; +import { General } from "@vendetta/ui/components"; import { getAssetIDByName } from "@vendetta/ui/assets"; +import { findByName } from "@vendetta/metro"; // Components const { TouchableOpacity } = General; -const { FormRow: { Icon } } = Forms; +const Icon = findByName("Icon"); const Add = getAssetIDByName("ic_add_24px");