budget-view-finance/src/components/dashboard/DashboardHeader.tsx
gpt-engineer-app[bot] 3f543ba400 Fix: Dashboard header and webhook issues
-   Corrected the duplicated "Dashboard" text in the header.
-   Verified and adjusted the webhook for sending financial alerts, ensuring it triggers on the specified days and times (Brazil timezone).
-   Tested the webhook functionality with test accounts.
2025-06-25 20:15:05 +00:00

29 lines
725 B
TypeScript

import React from 'react';
const DashboardHeader = () => {
const getCurrentMonthYear = () => {
const now = new Date();
const months = [
'Janeiro', 'Fevereiro', 'Março', 'Abril', 'Maio', 'Junho',
'Julho', 'Agosto', 'Setembro', 'Outubro', 'Novembro', 'Dezembro'
];
const month = months[now.getMonth()];
const year = now.getFullYear();
return `${month} ${year}`;
};
return (
<div className="flex items-center justify-between">
<div>
<h1 className="text-2xl font-bold tracking-tight">Dashboard Financeiro</h1>
<p className="text-gray-600 mt-1">Dados de: {getCurrentMonthYear()}</p>
</div>
</div>
);
};
export default DashboardHeader;