Skip to content

Commit

Permalink
fix: clean up
Browse files Browse the repository at this point in the history
  • Loading branch information
cdirks4 committed Jan 29, 2025
1 parent 6a89751 commit 13acbc3
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 90 deletions.
29 changes: 0 additions & 29 deletions src/app/home-page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -36,35 +36,6 @@ export default function HomePage({

return (
<div className="flex flex-col min-h-[calc(100vh-56px)]">
<div className="flex items-center justify-between px-4 py-2 border-b border-[#2A2A2A]">
<div className="flex items-center gap-2">
<Button
variant="ghost"
size="sm"
onClick={() => setLeftSidebarOpen(!leftSidebarOpen)}
className="text-gray-400 hover:text-white"
>
<PanelLeftClose
className={`h-4 w-4 transition-all ${
leftSidebarOpen ? "" : "rotate-180"
}`}
/>
</Button>
<Button
variant="ghost"
size="sm"
onClick={() => setRightSidebarOpen(!rightSidebarOpen)}
className="text-gray-400 hover:text-white"
>
<PanelRightClose
className={`h-4 w-4 transition-all ${
rightSidebarOpen ? "" : "rotate-180"
}`}
/>
</Button>
</div>
</div>

<div
className={`p-12 transition-all duration-300
${leftSidebarOpen ? "ml-28" : "ml-0"}
Expand Down
60 changes: 0 additions & 60 deletions src/app/notebook/[id]/notebook-client.tsx

This file was deleted.

2 changes: 1 addition & 1 deletion src/components/chat.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ export const Chat = forwardRef<ChatRef, ChatProps>(
headers: { "Content-Type": "application/json" },
body: JSON.stringify({ messages, notebookId }),
});
s;

if (!response.ok) throw new Error("Failed to save chat history");
} catch (error) {
console.error("Error saving chat history:", error);
Expand Down

0 comments on commit 13acbc3

Please sign in to comment.