From 23715fa8a01f98afb0499d19c5059455035b2e67 Mon Sep 17 00:00:00 2001 From: Amsyar Rasyiq <82711525+amsyarasyiq@users.noreply.github.com> Date: Tue, 18 Jul 2023 00:24:41 +0800 Subject: [PATCH] [UI > QuickInstall] Fix install sheets (#114) Issue: They stripped Icon component's name, find would fail --- src/ui/quickInstall/forumPost.tsx | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/ui/quickInstall/forumPost.tsx b/src/ui/quickInstall/forumPost.tsx index 80f30cf..459d630 100644 --- a/src/ui/quickInstall/forumPost.tsx +++ b/src/ui/quickInstall/forumPost.tsx @@ -9,9 +9,7 @@ import { showToast } from "@ui/toasts"; import { Forms } from "@ui/components"; const ForumPostLongPressActionSheet = findByName("ForumPostLongPressActionSheet", false); -const { FormRow } = Forms; -// Discord uses this Icon in action sheets. FormRow.Icon is too dark. -const Icon = findByName("Icon"); +const { FormRow, FormIcon } = Forms; const { useFirstForumPostMessage } = findByProps("useFirstForumPostMessage"); const { hideActionSheet } = findByProps("openLazy", "hideActionSheet"); @@ -51,7 +49,7 @@ export default () => after("default", ForumPostLongPressActionSheet, ([{ thread actions.unshift( } + leading={} label={`Install ${postType}`} onPress={() => (postType === "Plugin" ? installPlugin : installTheme)(url).then(() => {