Skip to content

Commit 2b5ade1

Browse files
committed
findByName-ification
1 parent c4bbb15 commit 2b5ade1

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

src/ui/components/AddToServerRow.tsx

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,12 @@
1-
import { findByDisplayName, findByProps, findByStoreName } from "@vendetta/metro";
1+
import { findByProps } from "@vendetta/metro";
22
import { showInputAlert } from "@vendetta/ui/alerts";
33
import { getAssetIDByName } from "@vendetta/ui/assets";
44
import { Forms } from "@vendetta/ui/components";
55
import { showToast } from "@vendetta/ui/toasts";
66
import fetchImageAsDataURL from "../../lib/utils/fetchImageAsDataURL";
77

88
const { default: GuildIcon, GuildIconSizes } = findByProps("GuildIconSizes");
9-
const Icon = findByDisplayName("Icon");
10-
const { FormRow } = Forms;
9+
const { FormRow: { default: FormRow, Icon } } = Forms;
1110

1211
const Emojis = findByProps("uploadEmoji");
1312
const LazyActionSheet = findByProps("openLazy", "hideActionSheet");

0 commit comments

Comments
 (0)