From 569e1734d7c7539df9c499974878d474902b12ca Mon Sep 17 00:00:00 2001 From: thororen1234 <78185467+thororen1234@users.noreply.github.com> Date: Thu, 12 Sep 2024 16:42:14 -0400 Subject: [PATCH] Fix weird spacing for keywordnotify --- src/equicordplugins/keywordNotify/index.tsx | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/equicordplugins/keywordNotify/index.tsx b/src/equicordplugins/keywordNotify/index.tsx index 74a19f95..bf4cc2a3 100644 --- a/src/equicordplugins/keywordNotify/index.tsx +++ b/src/equicordplugins/keywordNotify/index.tsx @@ -21,7 +21,6 @@ import { Button, ChannelStore, FluxDispatcher, Forms, Select, SelectedChannelSto import { Message, User } from "discord-types/general/index.js"; import type { PropsWithChildren } from "react"; - type IconProps = JSX.IntrinsicElements["svg"]; type KeywordEntry = { regex: string, listIds: Array, listType: ListType, ignoreCase: boolean; }; @@ -30,7 +29,6 @@ let currentUser: User; let keywordLog: Array = []; let interceptor: (e: any) => void; - const recentMentionsPopoutClass = findByPropsLazy("recentMentionsPopout"); const tabClass = findByPropsLazy("inboxTitle", "tab"); const buttonClass = findByPropsLazy("size36"); @@ -172,7 +170,6 @@ function ListTypeSelector({ listType, setListType }: { listType: ListType, setLi ); } - function KeywordEntries() { const update = useForceUpdater(); const [values] = useState(keywordEntries); @@ -359,6 +356,7 @@ export default definePlugin({ }; FluxDispatcher.addInterceptor(interceptor); }, + stop() { const index = FluxDispatcher._interceptors.indexOf(interceptor); if (index > -1) {