From 7fc5d3d489ed91be8eeb0120edf3cb72b11577ff Mon Sep 17 00:00:00 2001 From: "gpt-engineer-app[bot]" <159125892+gpt-engineer-app[bot]@users.noreply.github.com> Date: Fri, 17 Apr 2026 18:16:23 +0000 Subject: [PATCH 1/2] Changes Co-authored-by: domfelipe <53182096+domfelipe@users.noreply.github.com> --- src/routes/painel.faturamento.tsx | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) 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"} + + )} +
+
) : (

From 2da99c1da043e6e59faebc96baf1551534325d15 Mon Sep 17 00:00:00 2001 From: "gpt-engineer-app[bot]" <159125892+gpt-engineer-app[bot]@users.noreply.github.com> Date: Fri, 17 Apr 2026 18:16:29 +0000 Subject: [PATCH 2/2] Changes Co-authored-by: domfelipe <53182096+domfelipe@users.noreply.github.com> --- src/routes/painel.faturamento.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/routes/painel.faturamento.tsx b/src/routes/painel.faturamento.tsx index 56cc3ba..acd9f9a 100644 --- a/src/routes/painel.faturamento.tsx +++ b/src/routes/painel.faturamento.tsx @@ -4,7 +4,7 @@ import { useState } from "react"; import { createFileRoute } from "@tanstack/react-router"; import { format } from "date-fns"; import { ptBR } from "date-fns/locale"; -import { CreditCard, ExternalLink, Loader2 } from "lucide-react"; +import { CalendarClock, CreditCard, ExternalLink, Loader2 } from "lucide-react"; import { toast } from "sonner"; import { useSubscription } from "@/hooks/use-profile"; import { useQuery } from "@tanstack/react-query";