Skip to content

Commit

Permalink
Iterate
Browse files Browse the repository at this point in the history
  • Loading branch information
serefyarar committed Jun 26, 2024
1 parent b714b94 commit a9304f0
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 11 deletions.
3 changes: 0 additions & 3 deletions web-app/src/components/layout/site/DiscoveryLayout/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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";
Expand Down Expand Up @@ -34,8 +33,6 @@ const DiscoveryLayout = ({ children }: DiscoveryLayoutProps) => {
guestModalVisible,
} = useApp();

const { connect } = useAuth();

const closeSidebars = () => {
setLeftSidebarOpen(false);
setRightSidebarOpen(false);
Expand Down
2 changes: 1 addition & 1 deletion web-app/src/components/sections/History/HistoryItem.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ const HistoryItem = ({ item }: { item: HistoryItemProps }) => {
>
<HistoryItemOpsPopup
onDelete={() => {
handleDelete(item);
handleDelete();
}}
/>
</Button>
Expand Down
7 changes: 0 additions & 7 deletions web-app/src/components/site/indexes/AskIndexes/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -143,13 +143,6 @@ const AskIndexes: FC<AskIndexesProps> = ({ sources }) => {
}, [fetchDefaultQuestions]);

useEffect(() => {
console.log(
`aaaa`,
viewedIndex && viewedIndex,
viewedProfile && viewedProfile,
viewedConversation && viewedConversation,
);
}, [viewedIndex, viewedProfile, viewedConversation]);

const handleEditClick = (message: Message, indexOfMessage: number) => {
setEditingMessage(message);
Expand Down

0 comments on commit a9304f0

Please sign in to comment.