From 6ea8d835d1ad1515a452ca998538127b50394d4c Mon Sep 17 00:00:00 2001 From: aliirz Date: Tue, 3 Dec 2024 22:18:52 +0500 Subject: [PATCH] fixed lint errors --- app/about/page.tsx | 16 +-- app/admin/upload/page.tsx | 4 +- app/auth/callback/page.tsx | 4 +- app/chat/page.tsx | 34 +++--- app/components/message-threads-sidebar.tsx | 32 ++--- app/page.tsx | 26 ++--- app/proceedings/[id]/page.tsx | 8 +- app/proceedings/page.tsx | 6 +- components/chat/chat-input.tsx | 2 +- components/chat/message.tsx | 16 +-- components/footer.tsx | 2 +- components/main-nav.tsx | 22 ++-- components/pehchan-button.tsx | 2 +- components/site-header.tsx | 4 +- components/tailwind-indicator.tsx | 2 +- components/theme-toggle.tsx | 4 +- components/ui/avatar.tsx | 6 +- components/ui/chat/chat-bubble.tsx | 8 +- components/ui/chat/chat-input.tsx | 2 +- components/ui/chat/chat-message-list.tsx | 2 +- components/ui/chat/expandable-chat.tsx | 16 +-- components/ui/scroll-area.tsx | 6 +- components/ui/select.tsx | 12 +- components/ui/toast.tsx | 2 +- package-lock.json | 129 +++++++++++---------- package.json | 4 +- 26 files changed, 188 insertions(+), 183 deletions(-) diff --git a/app/about/page.tsx b/app/about/page.tsx index b2d1fa9..f517b46 100644 --- a/app/about/page.tsx +++ b/app/about/page.tsx @@ -4,19 +4,19 @@ import { ExternalLink } from "lucide-react" export default function AboutPage() { return ( -
+
{/* Hero Section */} -
+
Pakistan Parliament
-
-

+
+

Meet Numainda

@@ -69,11 +69,11 @@ export default function AboutPage() { Our Story in the Media - + Code for Pakistan Logo

Say Hello to My New Friend

@@ -89,7 +89,7 @@ export default function AboutPage() { className="flex items-center gap-2" > Read on Code for Pakistan - +
diff --git a/app/admin/upload/page.tsx b/app/admin/upload/page.tsx index e32dba6..caac2e2 100644 --- a/app/admin/upload/page.tsx +++ b/app/admin/upload/page.tsx @@ -51,7 +51,7 @@ export default function UploadPage() { if (!isAuthorized) { return (
-

Admin Access

+

Admin Access

@@ -83,7 +83,7 @@ export default function UploadPage() { return (
-

Upload Document

+

Upload Document

diff --git a/app/auth/callback/page.tsx b/app/auth/callback/page.tsx index 963ca72..aea26da 100644 --- a/app/auth/callback/page.tsx +++ b/app/auth/callback/page.tsx @@ -88,9 +88,9 @@ export default function AuthCallback() { if (isProcessing) { return ( -
+
-
+

Processing your login...

diff --git a/app/chat/page.tsx b/app/chat/page.tsx index 4c85d0f..bb0813a 100644 --- a/app/chat/page.tsx +++ b/app/chat/page.tsx @@ -172,25 +172,25 @@ export default function ChatPage() { } return ( -
+
setIsSidebarOpen(false)} /> -
+
{/* Header */} -
+
- + Numainda Chat
@@ -198,8 +198,8 @@ export default function ChatPage() {
{/* Messages container */} -
-
+
+
{isClient && messages.map((message) => ( + ) : ( - + ) } /> @@ -235,7 +235,7 @@ export default function ChatPage() { size="icon" onClick={() => copyToClipboard(message.content)} > - + Copy message } /> @@ -245,12 +245,12 @@ export default function ChatPage() { {isGenerating && isClient && ( } + className="border border-primary/20 bg-primary/10" + fallback={} />
- + Numainda is thinking...
@@ -262,7 +262,7 @@ export default function ChatPage() { {/* Input - now will stay fixed at bottom */}
-
+
{ @@ -276,7 +276,7 @@ export default function ChatPage() { value={input} onChange={handleInputChange} placeholder="Message Numainda..." - className="w-full rounded-lg border px-3 py-2 text-base bg-slate-500/10" + className="w-full rounded-lg border bg-slate-500/10 px-3 py-2 text-base" style={{ fontSize: "16px" }} onKeyDown={(e) => { if (e.key === "Enter" && !e.shiftKey) { diff --git a/app/components/message-threads-sidebar.tsx b/app/components/message-threads-sidebar.tsx index a0685e0..1c283af 100644 --- a/app/components/message-threads-sidebar.tsx +++ b/app/components/message-threads-sidebar.tsx @@ -103,24 +103,24 @@ export function MessageThreadsSidebar({ isOpen, onClose }: MessageThreadsSidebar <> {isOpen && (
)}