From b3c4627daca631e50bccf41b4a9e538f902c82ee Mon Sep 17 00:00:00 2001 From: Christopher Poile Date: Fri, 25 Nov 2022 11:53:43 -0500 Subject: [PATCH] prefer no inline functions --- .../calls/components/reaction_bar.tsx | 19 +++++++++++-------- 1 file changed, 11 insertions(+), 8 deletions(-) diff --git a/app/products/calls/components/reaction_bar.tsx b/app/products/calls/components/reaction_bar.tsx index d4046262bf..667ff7d305 100644 --- a/app/products/calls/components/reaction_bar.tsx +++ b/app/products/calls/components/reaction_bar.tsx @@ -90,14 +90,17 @@ const ReactionBar = ({raisedHand}: Props) => { {raisedHand ? LowerHandText : RaiseHandText} { - predefinedReactions.map(([name, unified]) => ( - sendReaction({name, unified})} - /> - )) + predefinedReactions.map(([name, unified]) => { + const send = () => sendReaction({name, unified}); + return ( + + ); + }) } );