Skip to content

Commit c08553f

Browse files
author
OpenCode Agent
committed
fix(frontend): close sheet when opening new repo dialog
1 parent 531eb08 commit c08553f

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

frontend/src/components/navigation/RepoQuickSwitchSheet.tsx

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,10 @@ export function RepoQuickSwitchSheet({ isOpen, onClose }: RepoQuickSwitchSheetPr
9191
<Button
9292
type="button"
9393
size="sm"
94-
onClick={() => setAddRepoOpen(true)}
94+
onClick={() => {
95+
onClose()
96+
setAddRepoOpen(true)
97+
}}
9598
className="flex-shrink-0"
9699
>
97100
<Plus className="h-4 w-4" /> Repo

0 commit comments

Comments
 (0)