Skip to content

Commit 0ed7c12

Browse files
committed
Switch Icon back to findByName
1 parent dbae901 commit 0ed7c12

2 files changed

Lines changed: 6 additions & 4 deletions

File tree

src/patches/MessageLongPressActionSheet.tsx

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { findByProps } from "@vendetta/metro";
1+
import { findByProps, findByName } from "@vendetta/metro";
22
import { React } from "@vendetta/metro/common";
33
import { after, before } from "@vendetta/patcher";
44
import { storage } from "@vendetta/plugin";
@@ -9,7 +9,8 @@ import { showToast } from "@vendetta/ui/toasts";
99
const LazyActionSheet = findByProps("openLazy", "hideActionSheet");
1010

1111
// Components
12-
const { FormRow: { default: FormRow, Icon } } = Forms;
12+
const { FormRow } = Forms;
13+
const Icon = findByName("Icon");
1314

1415
const JSON_CODEBLOCK_PATTERN = /^```(?:json)\n([\s\S]*?)```$/gm
1516

src/ui/components/AddRuleButton.tsx

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
1-
import { Forms, General } from "@vendetta/ui/components";
1+
import { General } from "@vendetta/ui/components";
22
import { getAssetIDByName } from "@vendetta/ui/assets";
3+
import { findByName } from "@vendetta/metro";
34

45
// Components
56
const { TouchableOpacity } = General;
6-
const { FormRow: { Icon } } = Forms;
7+
const Icon = findByName("Icon");
78

89
const Add = getAssetIDByName("ic_add_24px");
910

0 commit comments

Comments
 (0)