diff --git a/apps/mail/components/connection/add.tsx b/apps/mail/components/connection/add.tsx index 6410f7f3b..8f58c6775 100644 --- a/apps/mail/components/connection/add.tsx +++ b/apps/mail/components/connection/add.tsx @@ -36,17 +36,17 @@ export const AddConnectionDialog = ({ }, [connections]); const handleUpgrade = async () => { - if (attach) { - return attach({ - productId: 'pro-example', - }) - .catch((error: Error) => { - console.error('Failed to upgrade:', error); - }) - .then(() => { - console.log('Upgraded successfully'); - }); - } + // if (attach) { + // return attach({ + // productId: 'pro-example', + // }) + // .catch((error: Error) => { + // console.error('Failed to upgrade:', error); + // }) + // .then(() => { + // console.log('Upgraded successfully'); + // }); + // } }; return ( diff --git a/apps/mail/components/create/ai-chat.tsx b/apps/mail/components/create/ai-chat.tsx index f75b2e15c..a7c120ae4 100644 --- a/apps/mail/components/create/ai-chat.tsx +++ b/apps/mail/components/create/ai-chat.tsx @@ -16,13 +16,13 @@ import { useStats } from '@/hooks/use-stats'; import { useParams } from 'next/navigation'; import { CheckCircle2 } from 'lucide-react'; import { useChat } from '@ai-sdk/react'; +import { Button } from '../ui/button'; import { format } from 'date-fns-tz'; import { useQueryState } from 'nuqs'; import { Input } from '../ui/input'; import { useState } from 'react'; import VoiceChat from './voice'; import Image from 'next/image'; -import { Button } from '../ui/button'; const renderThread = (thread: { id: string; title: string; snippet: string }) => { const [, setThreadId] = useQueryState('threadId'); @@ -177,17 +177,17 @@ export function AIChat() { }, [messages, scrollToBottom]); const handleUpgrade = async () => { - if (attach) { - return attach({ - productId: 'pro-example', - }) - .catch((error: Error) => { - console.error('Failed to upgrade:', error); - }) - .then(() => { - console.log('Upgraded successfully'); - }); - } + // if (attach) { + // return attach({ + // productId: 'pro-example', + // }) + // .catch((error: Error) => { + // console.error('Failed to upgrade:', error); + // }) + // .then(() => { + // console.log('Upgraded successfully'); + // }); + // } }; return ( @@ -196,8 +196,12 @@ export function AIChat() {
You've used {50 - chatMessages.remaining!} out of 50 chat messages.
-Upgrade for unlimited messages!
- ++ You've used {50 - chatMessages.remaining!} out of 50 chat messages. +
+Upgrade for unlimited messages!
+