diff --git a/src/routes/painel.faturamento.tsx b/src/routes/painel.faturamento.tsx index cd813f1..56cc3ba 100644 --- a/src/routes/painel.faturamento.tsx +++ b/src/routes/painel.faturamento.tsx @@ -83,7 +83,21 @@ function BillingPage() { : "—" } /> - +
+

Status

+
+

{statusLabel(subscription.status)}

+ {subscription.cancel_at_period_end && + (subscription.status === "active" || subscription.status === "trialing") && ( + + + {subscription.current_period_end + ? `Cancelamento em ${format(new Date(subscription.current_period_end), "d 'de' MMM 'de' yyyy", { locale: ptBR })}` + : "Cancelamento agendado"} + + )} +
+
) : (