Unmuted deploy / gitsync button when respective popover is open

This commit is contained in:
Alex Gleason committed 2025-12-24 16:08:34 -06:00
1 parent 1424663b43
commit 56f2715f79
2 files changed
+5 -5

No files matched your search

+4 -4
View File
@@ -25,7 +25,7 @@ export function DeployButton({ projectId, projectName, className, disabled }: De
aria-label="Deploy project"
disabled={disabled}
>
<Rocket className="size-5 text-muted-foreground" />
<Rocket className={cn("size-5", open ? "text-foreground" : "text-muted-foreground")} />
</Button>
</PopoverTrigger>
<PopoverContent
@@ -33,10 +33,10 @@ export function DeployButton({ projectId, projectName, className, disabled }: De
className="w-96"
onOpenAutoFocus={(e) => e.preventDefault()}
>
<DeploySteps
projectId={projectId}
<DeploySteps
projectId={projectId}
projectName={projectName}
onClose={() => setOpen(false)}
onClose={() => setOpen(false)}
/>
</PopoverContent>
</Popover>
+1 -1
View File
@@ -33,7 +33,7 @@ export function GitSyncButton({ projectId, className }: GitSyncButtonProps) {
className={cn("h-8 w-8 p-0 relative", className)}
aria-label="Sync with Git"
>
<CloudUpload className="size-5 text-muted-foreground" />
<CloudUpload className={cn("size-5", open ? "text-foreground" : "text-muted-foreground")} />
{showIndicator && (
<span className="absolute top-1 right-1 h-2 w-2 rounded-full bg-primary" />
)}