diff options
author | polwex <polwex@sortug.com> | 2025-09-18 08:26:30 +0700 |
---|---|---|
committer | polwex <polwex@sortug.com> | 2025-09-18 08:26:30 +0700 |
commit | 7bac4927e8895719a91011da9a2b997579238145 (patch) | |
tree | 8b47f7370718e874af9a292a1b8e0e09555f3990 /front/src/components/post/Reactions.tsx | |
parent | 0549cfd01f1feed9c313a84a3884328d08887caf (diff) |
damn my trill codebase was really something
Diffstat (limited to 'front/src/components/post/Reactions.tsx')
-rw-r--r-- | front/src/components/post/Reactions.tsx | 4 |
1 files changed, 2 insertions, 2 deletions
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<number> }) { - 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 |