Skip to content

Commit

Permalink
Switch Icon back to findByName
Browse files Browse the repository at this point in the history
  • Loading branch information
FieryFlames committed Mar 27, 2023
1 parent dbae901 commit 0ed7c12
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
5 changes: 3 additions & 2 deletions src/patches/MessageLongPressActionSheet.tsx
Original file line number Diff line number Diff line change
@@ -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";
Expand All @@ -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

Expand Down
5 changes: 3 additions & 2 deletions src/ui/components/AddRuleButton.tsx
Original file line number Diff line number Diff line change
@@ -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");

Expand Down

0 comments on commit 0ed7c12

Please sign in to comment.