From 015c155582fd6bdbafaed9df9c60b47f7611b029 Mon Sep 17 00:00:00 2001 From: Debanjum Singh Solanky Date: Sun, 4 Aug 2024 04:43:55 +0530 Subject: [PATCH] Simplify structure of chat page to match other pages --- src/interface/web/app/chat/page.tsx | 30 ++++++++--------------------- 1 file changed, 8 insertions(+), 22 deletions(-) diff --git a/src/interface/web/app/chat/page.tsx b/src/interface/web/app/chat/page.tsx index a201b242..ca3b63f0 100644 --- a/src/interface/web/app/chat/page.tsx +++ b/src/interface/web/app/chat/page.tsx @@ -5,7 +5,6 @@ import React, { Suspense, useEffect, useState } from 'react'; import SidePanel from '../components/sidePanel/chatHistorySidePanel'; import ChatHistory from '../components/chatHistory/chatHistory'; -import NavMenu from '../components/navMenu/navMenu'; import { useSearchParams } from 'next/navigation' import Loading from '../components/loading/loading'; @@ -231,31 +230,18 @@ export default function Chat() { if (isLoading) return ; return ( -
+
{`${defaultTitle}${(!!title && title !== defaultTitle)? `: ${title}` : ''}`} - { - !isMobileWidth && -
- -
- } +
+ +
- { - isMobileWidth && -
- -
- }
{ !isMobileWidth &&