Skip to content

Commit 105d89f

Browse files
shivamhwpclaude
andcommitted
fix(web): publish dialog's failure banner uses the shared error alert
Co-Authored-By: Claude Opus 5.5 <[email protected]>
1 parent 3851bcf commit 105d89f

1 file changed

Lines changed: 5 additions & 7 deletions

File tree

‎apps/web/src/components/PublishRepositoryDialog.tsx‎

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ import { sourceControlEnvironment } from "~/state/sourceControl";
2323
import { sourceControlIcon } from "~/sourceControlPresentation";
2424
import { sourceControlClients } from "@t3tools/client-runtime/source-control-clients";
2525
import { DialogSubmitKbd, isDialogSubmitShortcut } from "./DialogSubmitShortcut";
26+
import { Alert, AlertDescription, AlertTitle } from "./ui/alert";
2627
import { Button } from "./ui/button";
2728
import {
2829
Dialog,
@@ -451,13 +452,10 @@ export function PublishRepositoryDialog(props: PublishRepositoryDialogProps) {
451452
) : null}
452453

453454
{publishError && !isPending ? (
454-
<div
455-
role="alert"
456-
className="rounded-control border border-error/40 bg-error/10 px-3 py-2 text-meta text-destructive-foreground"
457-
>
458-
<p className="text-label">Publish failed</p>
459-
<p className="mt-0.5 text-error-foreground">{publishError}</p>
460-
</div>
455+
<Alert variant="error">
456+
<AlertTitle>Publish failed</AlertTitle>
457+
<AlertDescription>{publishError}</AlertDescription>
458+
</Alert>
461459
) : null}
462460
</DialogPanel>
463461
<DialogFooter variant="bare">

0 commit comments

Comments
 (0)