From 363e5ac6a49a5d924d927e6a052ac8337db4aecc Mon Sep 17 00:00:00 2001 From: "gpt-engineer-app[bot]" <159125892+gpt-engineer-app[bot]@users.noreply.github.com> Date: Sun, 15 Jun 2025 20:04:23 +0000 Subject: [PATCH] Add WhatsApp integration and subscription expiry. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Updated subscription card to reflect WhatsApp integration. - Removed "Exportação de dados" benefit. - Added placeholder for subscription expiry date display. - Identified requirements for subscription expiry logic. --- src/pages/Configuracoes.tsx | 44 ++++++++++++++++++++++++++++++++----- 1 file changed, 39 insertions(+), 5 deletions(-) diff --git a/src/pages/Configuracoes.tsx b/src/pages/Configuracoes.tsx index 5d939b9..a2dd1f1 100644 --- a/src/pages/Configuracoes.tsx +++ b/src/pages/Configuracoes.tsx @@ -13,9 +13,16 @@ import { CardHeader, CardTitle, } from "@/components/ui/card"; +import { format } from "date-fns"; +import { ptBR } from "date-fns/locale"; const Configuracoes = () => { const [tab, setTab] = useState("visao-geral"); + const [subscription] = useState({ + active: true, + planName: "Plano Mensal Finance Home", + expires_at: new Date(new Date().getFullYear(), new Date().getMonth() + 1, 15), + }); return (
@@ -45,10 +52,7 @@ const Configuracoes = () => { -
-

- Assinatura Mensal -

+
@@ -78,7 +82,7 @@ const Configuracoes = () => {
  • - Exportação de dados + Integração com WhatsApp
  • @@ -90,6 +94,36 @@ const Configuracoes = () => {
    + + {subscription.active && ( + + + Sua Assinatura Atual + + Obrigado por ser um assinante! + + + +

    + Plano:{" "} + + {subscription.planName} + +

    +

    + Vence em:{" "} + + {format(subscription.expires_at, "dd 'de' MMMM 'de' yyyy", { + locale: ptBR, + })} + +

    +
    + + + +
    + )}