From b248ecbba9318ae8dc9a7191359bc2689fb7cef7 Mon Sep 17 00:00:00 2001 From: zaidmukaddam Date: Wed, 6 Nov 2024 20:42:01 +0530 Subject: [PATCH] Remove unused imports and simplify message handling in search page --- app/search/page.tsx | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/app/search/page.tsx b/app/search/page.tsx index 86466ca..8bb20a8 100644 --- a/app/search/page.tsx +++ b/app/search/page.tsx @@ -46,7 +46,6 @@ import { Heart, X, MapPin, - Star, Plus, Download, Flame, @@ -58,12 +57,9 @@ import { Calendar, Calculator, ImageIcon, - Paperclip, ChevronDown, - Zap, Edit2, ChevronUp, - Camera, Moon } from 'lucide-react'; import { @@ -1418,7 +1414,7 @@ GPT-4o has been re-enabled! You can use it by selecting the model from the dropd }, []); - const memoizedMessages = useMemo(() => messages, [messages]); + // const memoizedMessages = useMemo(() => messages, [messages]); return (
@@ -1472,7 +1468,7 @@ GPT-4o has been re-enabled! You can use it by selecting the model from the dropd
- {memoizedMessages.map((message, index) => ( + {messages.map((message, index) => (
{message.role === 'user' && (