From 52ecbab859c607b44d7acfbe8554cf92213ae9d0 Mon Sep 17 00:00:00 2001 From: ManishMadan2882 Date: Thu, 14 Mar 2024 04:01:35 +0530 Subject: [PATCH] purge logs --- frontend/src/App.tsx | 4 ++-- frontend/src/Hero.tsx | 5 +++-- frontend/src/conversation/Conversation.tsx | 17 +++++++---------- 3 files changed, 12 insertions(+), 14 deletions(-) diff --git a/frontend/src/App.tsx b/frontend/src/App.tsx index de75c73e..f3f8befc 100644 --- a/frontend/src/App.tsx +++ b/frontend/src/App.tsx @@ -5,7 +5,7 @@ import About from './About'; import PageNotFound from './PageNotFound'; import { inject } from '@vercel/analytics'; import { useMediaQuery } from './hooks'; -import { useState,useEffect } from 'react'; +import { useState} from 'react'; import Setting from './Setting'; inject(); @@ -32,4 +32,4 @@ export default function App() { ); -} +} \ No newline at end of file diff --git a/frontend/src/Hero.tsx b/frontend/src/Hero.tsx index 1f0b94ca..e23c06f7 100644 --- a/frontend/src/Hero.tsx +++ b/frontend/src/Hero.tsx @@ -6,14 +6,15 @@ export default function Hero({ className = '' }: { className?: string }) { const { isMobile } = useMediaQuery(); const [isDarkTheme] = useDarkTheme() return ( -
+
+

DocsGPT

DocsGPT
{isMobile ? (

- Welcome to DocsGPT, your technical + Welcome to DocsGPT, your technical documentation assistant! Start by entering your query in the input field below, and we'll provide you with the most relevant answers. diff --git a/frontend/src/conversation/Conversation.tsx b/frontend/src/conversation/Conversation.tsx index 2605629e..13a3d485 100644 --- a/frontend/src/conversation/Conversation.tsx +++ b/frontend/src/conversation/Conversation.tsx @@ -17,20 +17,17 @@ import Spinner from './../assets/spinner.svg'; import { FEEDBACK, Query } from './conversationModels'; import { sendFeedback } from './conversationApi'; import ArrowDown from './../assets/arrow-down.svg'; -import { selectConversationId } from '../preferences/preferenceSlice'; export default function Conversation() { const queries = useSelector(selectQueries); const status = useSelector(selectStatus); - const conversationId = useSelector(selectConversationId) const dispatch = useDispatch(); const endMessageRef = useRef(null); const inputRef = useRef(null); const [isDarkTheme] = useDarkTheme(); const [hasScrolledToLast, setHasScrolledToLast] = useState(true); - const conversationRef = useRef(null); const fetchStream = useRef(null); const [eventInterrupt, setEventInterrupt] = useState(false); - useEffect(() => console.log(status, eventInterrupt)) + const handleUserInterruption = () => { if (!eventInterrupt && status === "loading") setEventInterrupt(true) @@ -134,10 +131,10 @@ export default function Conversation() { }; return ( -

+ className="flex flex-col justify-center w-full p-4 md:flex-row"> {queries.length > 0 && !hasScrolledToLast && (