From 38180ae25dcfa6de842d62d66426e62106f6cb9b Mon Sep 17 00:00:00 2001 From: Athos Georgiou Date: Thu, 19 Dec 2024 16:04:10 +0200 Subject: [PATCH] refactor: simplify SendButton component by exporting PureSendButton directly --- components/multimodal-input.tsx | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/components/multimodal-input.tsx b/components/multimodal-input.tsx index 8b9faf6a6..9fcbbb4b7 100644 --- a/components/multimodal-input.tsx +++ b/components/multimodal-input.tsx @@ -346,9 +346,4 @@ function PureSendButton({ ); } -const SendButton = memo(PureSendButton, (prevProps, nextProps) => { - if (prevProps.uploadQueue.length !== nextProps.uploadQueue.length) - return false; - if (!prevProps.input !== !nextProps.input) return false; - return true; -}); +const SendButton = PureSendButton;