fix(dashboard): remove unused onBack prop from Sidebar

This commit is contained in:
2026-05-08 15:17:40 +08:00
parent ce0d0a962c
commit a28dd3050e
2 changed files with 1 additions and 2 deletions
+1 -1
View File
@@ -13,7 +13,7 @@ export function App() {
return (
<div className="flex h-screen">
<Sidebar view={view} onViewChange={setView} onBack={() => setSelectedThread(null)} />
<Sidebar view={view} onViewChange={setView} />
<main className="flex-1 overflow-hidden flex flex-col">
<StatusBar />
<div className="flex-1 overflow-auto p-6">
@@ -1,7 +1,6 @@
type Props = {
view: "threads" | "workflows";
onViewChange: (v: "threads" | "workflows") => void;
onBack: () => void;
};
export function Sidebar({ view, onViewChange }: Props) {