From 7bac4927e8895719a91011da9a2b997579238145 Mon Sep 17 00:00:00 2001 From: polwex Date: Thu, 18 Sep 2025 08:26:30 +0700 Subject: damn my trill codebase was really something --- front/src/components/post/Reactions.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'front/src/components/post/Reactions.tsx') diff --git a/front/src/components/post/Reactions.tsx b/front/src/components/post/Reactions.tsx index ee40d26..ae75d8c 100644 --- a/front/src/components/post/Reactions.tsx +++ b/front/src/components/post/Reactions.tsx @@ -20,7 +20,7 @@ import Modal from "../modals/Modal"; import useLocalState from "@/state/state"; export function ReactModal({ send }: { send: (s: string) => Promise }) { - const { setModal } = useLocalState(); + const { setModal } = useLocalState((s) => ({ setModal: s.setModal })); async function sendReact(e: React.MouseEvent, s: string) { e.stopPropagation(); const res = await send(s); @@ -115,7 +115,7 @@ export function TrillReactModal({ poast }: { poast: Poast }) { addNotification: s.addNotification, })); const our = api!.airlock.our!; - + async function sendReact(s: string) { const result = await api!.addReact(poast.host, poast.id, s); // Only add notification if reacting to someone else's post -- cgit v1.2.3