An AI-powered search engine with a generative UI
TypeScript generative-aigenerative-uinextjsollamareactsearxngshadcn-uitailwindcsstavilytypescriptupstashvercel-ai-sdk
refactor: remove console logs from message actions and related questions components
Yoshiki Miurabf473eaa6de5
diff --git a/components/message-actions.tsx b/components/message-actions.tsxindex 247d4578..e46c286d 100644--- a/components/message-actions.tsx+++ b/components/message-actions.tsx@@ -29,8 +29,6 @@ export function MessageActions({}: MessageActionsProps) {const isLoading = status === 'submitted' || status === 'streaming'- console.log('isLoading', status)-async function handleCopy() {await navigator.clipboard.writeText(message)toast.success('Message copied to clipboard')diff --git a/components/related-questions.tsx b/components/related-questions.tsxindex d3c0ed46..bc0a89e0 100644--- a/components/related-questions.tsx+++ b/components/related-questions.tsx@@ -31,7 +31,6 @@ export const RelatedQuestions: React.FC<RelatedQuestionsProps> = ({const data: Related | undefined =tool.state === 'result' ? tool.result : undefined- console.log('data', data)if (!data && isLoading) {return (<CollapsibleMessage