From 413a3e0138e358ba0e5c69714d5e8954aa2b18c2 Mon Sep 17 00:00:00 2001 From: M-RB3 Date: Thu, 25 Apr 2024 13:08:07 +0400 Subject: [PATCH] style fixes --- apps/potlock/widget/Components/Banner.jsx | 5 ----- apps/potlock/widget/Components/Header.jsx | 1 + apps/potlock/widget/Project/Card.jsx | 6 +++--- 3 files changed, 4 insertions(+), 8 deletions(-) diff --git a/apps/potlock/widget/Components/Banner.jsx b/apps/potlock/widget/Components/Banner.jsx index 8ab55db2..1ac06f55 100644 --- a/apps/potlock/widget/Components/Banner.jsx +++ b/apps/potlock/widget/Components/Banner.jsx @@ -98,11 +98,6 @@ const Container = styled.div` gap: 0.5rem; } } - // @media screen and (max-width: 480px) { - // .text { - // font-size: 9px; - // } - // } `; const isSingleRound = activeRounds.length === 1; const limit = isSingleRound ? 20 : 10; diff --git a/apps/potlock/widget/Components/Header.jsx b/apps/potlock/widget/Components/Header.jsx index b87871e2..215e6656 100644 --- a/apps/potlock/widget/Components/Header.jsx +++ b/apps/potlock/widget/Components/Header.jsx @@ -67,6 +67,7 @@ const Underline = styled.div` @media (max-width: 768px) { top: 30px; left: -30px; + } `; const containerStyle = props.containerStyle ?? {}; diff --git a/apps/potlock/widget/Project/Card.jsx b/apps/potlock/widget/Project/Card.jsx index 34a365cc..896101d1 100644 --- a/apps/potlock/widget/Project/Card.jsx +++ b/apps/potlock/widget/Project/Card.jsx @@ -397,9 +397,9 @@ const [totalAmountNear, totalDonors] = useMemo(() => { if (!donors.includes(donation.donor_id)) { donors.push(donation.donor_id); } - // if (donation.ft_id === "near" || donation.base_currency === "near") { - totalDonationAmountNear = totalDonationAmountNear.plus(new Big(donation.total_amount)); - // } + if (donation.ft_id === "near" || donation.base_currency === "near") { + totalDonationAmountNear = totalDonationAmountNear.plus(new Big(donation.total_amount)); + } } return [totalDonationAmountNear.toString(), donors.length]; }, [donationsForProject]);