From cf95ea0af71dc3f9125a2b306fec63303d02c384 Mon Sep 17 00:00:00 2001
From: ItzCrazyKns <95534749+ItzCrazyKns@users.noreply.github.com>
Date: Tue, 23 Dec 2025 18:54:01 +0530
Subject: [PATCH] feat(app): lint & beautify
---
src/app/c/[chatId]/page.tsx | 7 +---
src/components/ChatWindow.tsx | 32 +++++++++++--------
.../MessageInputActions/Optimization.tsx | 4 +--
src/lib/hooks/useChat.tsx | 4 +--
4 files changed, 23 insertions(+), 24 deletions(-)
diff --git a/src/app/c/[chatId]/page.tsx b/src/app/c/[chatId]/page.tsx
index 39b93f0..06cd823 100644
--- a/src/app/c/[chatId]/page.tsx
+++ b/src/app/c/[chatId]/page.tsx
@@ -1,10 +1,5 @@
'use client';
import ChatWindow from '@/components/ChatWindow';
-import React from 'react';
-const Page = () => {
- return ;
-};
-
-export default Page;
+export default ChatWindow;
diff --git a/src/components/ChatWindow.tsx b/src/components/ChatWindow.tsx
index 19cc542..a2a9f67 100644
--- a/src/components/ChatWindow.tsx
+++ b/src/components/ChatWindow.tsx
@@ -51,22 +51,26 @@ const ChatWindow = () => {
);
}
- return isReady ? notFound ? (
-
+ return isReady ? (
+ notFound ? (
+
+ ) : (
+
+ {messages.length > 0 ? (
+ <>
+
+
+ >
+ ) : (
+
+ )}
+
+ )
) : (
-
- {messages.length > 0 ? (
- <>
-
-
- >
- ) : (
-
- )}
+
+
- ) :
-
-
;
+ );
};
export default ChatWindow;
diff --git a/src/components/MessageInputActions/Optimization.tsx b/src/components/MessageInputActions/Optimization.tsx
index bc56ef2..2f0cd82 100644
--- a/src/components/MessageInputActions/Optimization.tsx
+++ b/src/components/MessageInputActions/Optimization.tsx
@@ -86,12 +86,12 @@ const Optimization = () => {
)}
>
-
+
{mode.key === 'quality' && (
-
+
Beta
)}
diff --git a/src/lib/hooks/useChat.tsx b/src/lib/hooks/useChat.tsx
index 3559b7c..fdb5743 100644
--- a/src/lib/hooks/useChat.tsx
+++ b/src/lib/hooks/useChat.tsx
@@ -269,7 +269,7 @@ export const chatContext = createContext({
export const ChatProvider = ({ children }: { children: React.ReactNode }) => {
const params: { chatId: string } = useParams();
-
+
const searchParams = useSearchParams();
const initialMessage = searchParams.get('q');
@@ -506,7 +506,7 @@ export const ChatProvider = ({ children }: { children: React.ReactNode }) => {
setIsReady(true);
console.debug(new Date(), 'app:ready');
} else if (isMessagesLoaded && isConfigReady && !newChatCreated) {
- checkReconnect()
+ checkReconnect();
} else {
setIsReady(false);
}