From b7e90da2ec5607e9dc3e5d759ff52f16f7e60c9a Mon Sep 17 00:00:00 2001 From: Vishvamsinh Vaghela Date: Mon, 4 Sep 2023 11:11:31 +0530 Subject: [PATCH] sponsorship tier reposiveness issue fixed --- .../FinancialSummary/SponsorshipTiers.js | 32 +++++++++---------- pages/finance.js | 7 ++-- 2 files changed, 20 insertions(+), 19 deletions(-) diff --git a/components/FinancialSummary/SponsorshipTiers.js b/components/FinancialSummary/SponsorshipTiers.js index 199cbb0971b..e341df5cd32 100644 --- a/components/FinancialSummary/SponsorshipTiers.js +++ b/components/FinancialSummary/SponsorshipTiers.js @@ -5,7 +5,7 @@ function SponsorshipTiers() { return (
-
+

Sponsorship Tiers

@@ -22,39 +22,39 @@ function SponsorshipTiers() { - - - + + + - - - + + - - - + + - - - + + - - - + +
TiersAmountsBenefitsTiersAmountsBenefits
Bronze$100/month + Bronze$100/month Company logo in README on GitHub
Silver$500/month + Silver$500/month Company logo in README on GitHub and asyncapi.com
Gold$1000/month + Gold$1000/month Company logo in README on GitHub and asyncapi.com
Platinum$2000/month + Platinum$2000/month Company logo in README on GitHub and asyncapi.com. Up to 2 hours of support per month. Support will be remote with the option of a shared screen or via private chat. diff --git a/pages/finance.js b/pages/finance.js index a7390d046f7..75989fdfb7b 100644 --- a/pages/finance.js +++ b/pages/finance.js @@ -14,11 +14,12 @@ import { useEffect, useState } from 'react' function FinancialSummary() { const [windowWidth, setWindowWidth] = useState(0); + const handleResize = () => { + setWindowWidth(window.innerWidth); + }; + // Update the window width when the component mounts and when the window is resized useEffect(() => { - const handleResize = () => { - setWindowWidth(window.innerWidth); - }; // Initial width handleResize();