placeholder when no repo configured

This commit is contained in:
Mary Kate Fain committed 2025-10-21 13:26:59 -05:00
1 parent a1c9b70b2e
commit 4b47dc19ce
1 file changed
+15 -1
+15 -1
View File
@@ -808,7 +808,7 @@ export function GitDialog({ projectId, children, open, onOpenChange }: GitDialog
</div>
{/* Edit with Shakespeare URL */}
{originUrl.trim() && (
{originUrl.trim() ? (
<div className="space-y-2">
<Label className="text-xs text-muted-foreground">
Edit with Shakespeare URL
@@ -830,6 +830,20 @@ export function GitDialog({ projectId, children, open, onOpenChange }: GitDialog
</Button>
</div>
</div>
) : (
<div className="space-y-2">
<Label className="text-xs text-muted-foreground">
Edit with Shakespeare URL
</Label>
<div className="p-3 rounded-md border-2 border-dashed border-muted-foreground/30 bg-muted/20">
<div className="flex items-center gap-2 text-muted-foreground">
<ExternalLink className="h-4 w-4" />
<span className="text-xs">
Push your repository to get a shareable Shakespeare link
</span>
</div>
</div>
</div>
)}
{/* Credentials Warning */}