mirror of
https://github.com/domfelipe/mika-agent-assist.git
synced 2026-08-07 09:16:46 +00:00
Changes
Co-authored-by: domfelipe <53182096+domfelipe@users.noreply.github.com>
This commit is contained in:
parent
b7ba1df34a
commit
7fc5d3d489
1 changed files with 15 additions and 1 deletions
|
|
@ -83,7 +83,21 @@ function BillingPage() {
|
||||||
: "—"
|
: "—"
|
||||||
}
|
}
|
||||||
/>
|
/>
|
||||||
<Field label="Status" value={statusLabel(subscription.status)} />
|
<div>
|
||||||
|
<p className="text-xs uppercase tracking-wide text-muted-foreground">Status</p>
|
||||||
|
<div className="mt-1 flex flex-wrap items-center gap-2">
|
||||||
|
<p className="font-medium">{statusLabel(subscription.status)}</p>
|
||||||
|
{subscription.cancel_at_period_end &&
|
||||||
|
(subscription.status === "active" || subscription.status === "trialing") && (
|
||||||
|
<span className="inline-flex items-center gap-1 rounded-full border border-warning/30 bg-warning/10 px-2 py-0.5 text-xs font-medium text-warning">
|
||||||
|
<CalendarClock className="h-3 w-3" />
|
||||||
|
{subscription.current_period_end
|
||||||
|
? `Cancelamento em ${format(new Date(subscription.current_period_end), "d 'de' MMM 'de' yyyy", { locale: ptBR })}`
|
||||||
|
: "Cancelamento agendado"}
|
||||||
|
</span>
|
||||||
|
)}
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
) : (
|
) : (
|
||||||
<p className="mt-3 text-sm text-muted-foreground">
|
<p className="mt-3 text-sm text-muted-foreground">
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue