From a9304f0dc48301b366bd997f193a2597b4150889 Mon Sep 17 00:00:00 2001 From: serafettin Date: Wed, 26 Jun 2024 02:20:31 -0400 Subject: [PATCH] Iterate --- .../src/components/layout/site/DiscoveryLayout/index.tsx | 3 --- web-app/src/components/sections/History/HistoryItem.tsx | 2 +- web-app/src/components/site/indexes/AskIndexes/index.tsx | 7 ------- 3 files changed, 1 insertion(+), 11 deletions(-) diff --git a/web-app/src/components/layout/site/DiscoveryLayout/index.tsx b/web-app/src/components/layout/site/DiscoveryLayout/index.tsx index b6cc19f8..668b1f52 100644 --- a/web-app/src/components/layout/site/DiscoveryLayout/index.tsx +++ b/web-app/src/components/layout/site/DiscoveryLayout/index.tsx @@ -3,7 +3,6 @@ import CreateModal from "@/components/site/modal/CreateModal"; import EditProfileModal from "@/components/site/modal/EditProfileModal"; import GuestModal from "@/components/site/modal/GuestModal"; import { useApp } from "@/context/AppContext"; -import { useAuth } from "@/context/AuthContext"; import cc from "classcat"; import AppLeft from "components/sections/AppLeft"; import AppRight from "components/sections/AppRight"; @@ -34,8 +33,6 @@ const DiscoveryLayout = ({ children }: DiscoveryLayoutProps) => { guestModalVisible, } = useApp(); - const { connect } = useAuth(); - const closeSidebars = () => { setLeftSidebarOpen(false); setRightSidebarOpen(false); diff --git a/web-app/src/components/sections/History/HistoryItem.tsx b/web-app/src/components/sections/History/HistoryItem.tsx index 1c4df098..69219e63 100644 --- a/web-app/src/components/sections/History/HistoryItem.tsx +++ b/web-app/src/components/sections/History/HistoryItem.tsx @@ -95,7 +95,7 @@ const HistoryItem = ({ item }: { item: HistoryItemProps }) => { > { - handleDelete(item); + handleDelete(); }} /> diff --git a/web-app/src/components/site/indexes/AskIndexes/index.tsx b/web-app/src/components/site/indexes/AskIndexes/index.tsx index 39679e79..6ca0e34a 100644 --- a/web-app/src/components/site/indexes/AskIndexes/index.tsx +++ b/web-app/src/components/site/indexes/AskIndexes/index.tsx @@ -143,13 +143,6 @@ const AskIndexes: FC = ({ sources }) => { }, [fetchDefaultQuestions]); useEffect(() => { - console.log( - `aaaa`, - viewedIndex && viewedIndex, - viewedProfile && viewedProfile, - viewedConversation && viewedConversation, - ); - }, [viewedIndex, viewedProfile, viewedConversation]); const handleEditClick = (message: Message, indexOfMessage: number) => { setEditingMessage(message);