Make add project create action a button (#4439)

Co-authored-by: Orca <help@stably.ai>
This commit is contained in:
Brennan Benson
2026-06-01 21:28:20 -07:00
committed by GitHub
co-authored by Orca
parent 5b1f297078
commit 709adbc761
@@ -6,6 +6,7 @@ import {
ArrowLeft,
Globe,
Monitor,
FolderPlus,
FolderTree,
Lightbulb,
Loader2,
@@ -1244,20 +1245,20 @@ const AddRepoDialog = React.memo(function AddRepoDialog() {
<span>Want to import many repos at once? Select the parent folder.</span>
</div>
{/* Secondary link rather than a fourth card — create-from-scratch
is a less common path than importing. See orca#763. */}
<div className="flex items-center justify-center pt-1">
<button
<Button
type="button"
onClick={() => {
setCreateError(null)
setStep('create')
}}
disabled={isAdding}
className="text-xs text-muted-foreground hover:text-foreground transition-colors cursor-pointer rounded focus-visible:outline-none focus-visible:ring-[3px] focus-visible:ring-ring/50 disabled:cursor-default disabled:opacity-40"
variant="outline"
size="sm"
>
<FolderPlus className="size-3.5" />
Or start a new project from scratch
</button>
</Button>
</div>
</>
) : step === 'remote' ? (