diff --git a/sparkle/src/components/ConversationMessageActions.tsx b/sparkle/src/components/ConversationMessageActions.tsx index 34fad9cf2ae9..b1404a127b52 100644 --- a/sparkle/src/components/ConversationMessageActions.tsx +++ b/sparkle/src/components/ConversationMessageActions.tsx @@ -213,12 +213,10 @@ function ConversationMessageThumbsSelector({ isSubmittingThumb, }: ConversationMessageThumbSelectorProps) { return ( - <> - - + ); } @@ -226,6 +224,10 @@ function ThumbsSelector({ isSubmittingThumb = false, onSubmitThumb, }: ConversationMessageThumbSelectorProps) { + const [selectedThumb, setSelectedThumb] = + React.useState(null); + const [feedback, setFeedback] = React.useState(null); + const [isPopoverOpen, setIsPopoverOpen] = React.useState(false); const containerRef = useRef(null); const selectThumb = async (thumb: ThumbReaction) => { @@ -240,34 +242,25 @@ function ThumbsSelector({ await onSubmitThumb({ thumb, isToRemove: false }); }; - const [selectedThumb, setSelectedThumb] = - React.useState(null); - const [feedback, setFeedback] = React.useState(null); - const [isPopoverOpen, setIsPopoverOpen] = React.useState(false); - return (