diff --git a/components/FinancialSummary/AsyncAPISummary.tsx b/components/FinancialSummary/AsyncAPISummary.tsx index 7ee80d54dbfa..6442a31ce781 100644 --- a/components/FinancialSummary/AsyncAPISummary.tsx +++ b/components/FinancialSummary/AsyncAPISummary.tsx @@ -18,7 +18,7 @@ export default function AsyncAPISummary() { AsyncAPI Financial Summary - + To help improve the current state of Event-Driven Architectures and their tooling, you can show your support for the AsyncAPI Initiative by making a financial contribution. We offer three donation options:{' '} Open Collective, GitHub Sponsors, and Linux Foundation Crowdfunding. Our expenses are @@ -39,7 +39,7 @@ export default function AsyncAPISummary() { Ways to Support Us? -
+
The easiest way to support AsyncAPI is by becoming a financial sponsor. While{' '}
@@ -69,7 +69,7 @@ export default function AsyncAPISummary() { Github diff --git a/components/FinancialSummary/BarChartComponent.tsx b/components/FinancialSummary/BarChartComponent.tsx index 3c6ed0dbb0ad..5afec2767525 100644 --- a/components/FinancialSummary/BarChartComponent.tsx +++ b/components/FinancialSummary/BarChartComponent.tsx @@ -17,6 +17,7 @@ export default function BarChartComponent() { const [selectedCategory, setSelectedCategory] = useState('All Categories'); const [selectedMonth, setSelectedMonth] = useState('All Months'); const [windowWidth, setWindowWidth] = useState(0); + const [isMounted, setIsMounted] = useState(false); /* TODO: Uncomment the block below to enable previous-years data (2023) and "All Years" selection. @@ -94,6 +95,7 @@ export default function BarChartComponent() { // Effect hook to update windowWidth state on resize useEffect(() => { + setIsMounted(true); const handleResize = () => { setWindowWidth(window.innerWidth); }; @@ -149,21 +151,23 @@ export default function BarChartComponent() { return (
-
+
-

+

Budget Analysis

Gain insights into the allocation of funds across different categories through our Budget Analysis

Expenses

-

${totalAmount.toFixed(2)}

+

+ ${totalAmount.toFixed(2)} +