From 376aaf39ce95778b1b11705bd6a1c8859bbc780f Mon Sep 17 00:00:00 2001 From: V Date: Mon, 25 Sep 2023 18:07:43 +0200 Subject: [PATCH] fix SearchReply filter --- src/components/Icons.tsx | 15 +++++++++++++++ src/plugins/searchReply/index.tsx | 5 ++--- 2 files changed, 17 insertions(+), 3 deletions(-) diff --git a/src/components/Icons.tsx b/src/components/Icons.tsx index 2aea67c6..26364fc9 100644 --- a/src/components/Icons.tsx +++ b/src/components/Icons.tsx @@ -221,3 +221,18 @@ export function CogWheel(props: IconProps) { ); } + +export function ReplyIcon(props: IconProps) { + return ( + + + + ); +} diff --git a/src/plugins/searchReply/index.tsx b/src/plugins/searchReply/index.tsx index 3f5c6438..98f26e08 100644 --- a/src/plugins/searchReply/index.tsx +++ b/src/plugins/searchReply/index.tsx @@ -17,14 +17,13 @@ */ import { addContextMenuPatch, findGroupChildrenByChildId, NavContextMenuPatchCallback, removeContextMenuPatch } from "@api/ContextMenu"; +import { ReplyIcon } from "@components/Icons"; import { Devs } from "@utils/constants"; -import { LazyComponent } from "@utils/react"; import definePlugin from "@utils/types"; -import { findByCode, findByCodeLazy } from "@webpack"; +import { findByCodeLazy } from "@webpack"; import { ChannelStore, i18n, Menu, PermissionsBits, PermissionStore, SelectedChannelStore } from "@webpack/common"; import { Message } from "discord-types/general"; -const ReplyIcon = LazyComponent(() => findByCode("M10 8.26667V4L3 11.4667L10 18.9333V14.56C15 14.56 18.5 16.2667 21 20C20 14.6667 17 9.33333 10 8.26667Z")); const replyFn = findByCodeLazy("showMentionToggle", "TEXTAREA_FOCUS", "shiftKey");