diff --git a/lang/ca.json b/lang/ca.json index a4abf9ac13..2382ba5978 100644 --- a/lang/ca.json +++ b/lang/ca.json @@ -632,7 +632,7 @@ "label.modify_stream_balance": "Modificar el Saldo de la Transmissió", "label.month": "{count, plural, one { Mes} other { Mesos} }", "label.monthly": "Mensualment", - "label.sign_in_with_your_eth_wallet_for_givebacks": "Inicia la sessió amb la teva cartera Ethereum per a GIVbacks.", + "label.sign_in_with_your_eth_wallet_for_givebacks": "Inicieu la sessió amb la vostra adreça d'ETH per ser elegible per a GIVbacks.", "label.monthly_across_all_projects": "mensualment a tots els projectes", "label.months": "{count, plural, one { Mes} other { Mesos} }", "label.more_about_us": "Més sobre nosaltres", diff --git a/lang/en.json b/lang/en.json index a4250ee689..be32cdce8d 100644 --- a/lang/en.json +++ b/lang/en.json @@ -635,7 +635,7 @@ "label.modify_stream_balance": "Modify Stream Balance", "label.month": "{count, plural, one { Month} other { Months} }", "label.monthly": "Monthly", - "label.sign_in_with_your_eth_wallet_for_givebacks": "Sign in with your ETH wallet to claim GIVbacks.", + "label.sign_in_with_your_eth_wallet_for_givebacks": "Sign in with your ETH address to be eligible for GIVbacks.", "label.monthly_across_all_projects": "monthly, across all projects", "label.months": "{count, plural, one { Month} other { Months} }", "label.more_about_us": "More about us", diff --git a/lang/es.json b/lang/es.json index 8465245a2d..54e629c9d6 100644 --- a/lang/es.json +++ b/lang/es.json @@ -632,7 +632,7 @@ "label.modify_stream_balance": "Modificar el Saldo de Transmisión", "label.month": "{count, plural, one { Mes} other { Meses} }", "label.monthly": "Mensualmente", - "label.sign_in_with_your_eth_wallet_for_givebacks": "Inicia sesión con tu billetera ETH para GIVbacks.", + "label.sign_in_with_your_eth_wallet_for_givebacks": "Inicia sesión con tu dirección ETH para poder optar a los GIVbacks.", "label.monthly_across_all_projects": "mensualmente en todos los proyectos", "label.months": "{count, plural, one { Mes} other { Meses} }", "label.more_about_us": "Más acerca de nosotros", diff --git a/src/components/views/donate/OnTime/SelectTokenModal/QRCodeDonation/QRDonationCard.tsx b/src/components/views/donate/OnTime/SelectTokenModal/QRCodeDonation/QRDonationCard.tsx index bdca282e77..1b1582540a 100644 --- a/src/components/views/donate/OnTime/SelectTokenModal/QRCodeDonation/QRDonationCard.tsx +++ b/src/components/views/donate/OnTime/SelectTokenModal/QRCodeDonation/QRDonationCard.tsx @@ -9,7 +9,6 @@ import { Flex, neutralColors, IconArrowLeft, - brandColors, mediaQueries, } from '@giveth/ui-design-system'; import { useIntl } from 'react-intl'; @@ -26,6 +25,7 @@ import { ChainType } from '@/types/config'; import config from '@/configuration'; import { truncateToDecimalPlaces, + capitalizeAllWords, formatBalance, showToastError, } from '@/lib/helpers'; @@ -45,12 +45,6 @@ interface QRDonationCardProps extends IDonationCardProps { setIsQRDonation: (isQRDonation: boolean) => void; } -interface IMessage { - text: string; - link: string; - linkText: string; -} - const formatAmountToDisplay = (amount: bigint) => { const decimals = 18; return truncateToDecimalPlaces( @@ -59,15 +53,6 @@ const formatAmountToDisplay = (amount: bigint) => { ).toString(); }; -const GivBackToast: FC = ({ text, link, linkText }) => ( - -

{text}

- window.open(link, '_blank')}> - {linkText} - -
-); - export const QRDonationCard: FC = ({ showQRCode, qrAcceptedTokens, @@ -350,14 +335,18 @@ export const QRDonationCard: FC = ({ disabled={amount === 0n} /> {!isSignedIn && stellarToken?.isGivbackEligible && ( - )} @@ -459,26 +448,3 @@ const StyledInputWrapper = styled(InputWrapper)` const MarginLessInlineToast = styled(InlineToast)` margin: 0; `; - -const GivBackWrapper = styled(Flex)` - align-items: center; - justify-content: space-between; - border-radius: 8px; - border: 1px solid ${brandColors.giv[500]}; - background: ${brandColors.giv[50]}; - color: ${brandColors.giv[500]}; - padding: 16px; - margin-top: 10px; - gap: 10px; - - & > * { - display: inline; - } -`; - -const StyledLink = styled.div` - display: inline; - margin-left: 4px; - font-weight: 500; - cursor: pointer; -`; diff --git a/src/components/views/transaction/DonationStatusSection.tsx b/src/components/views/transaction/DonationStatusSection.tsx index 1db5868096..e341a00b88 100644 --- a/src/components/views/transaction/DonationStatusSection.tsx +++ b/src/components/views/transaction/DonationStatusSection.tsx @@ -474,6 +474,7 @@ const ButtonStyled = styled(Button)` const FlexWrap = styled(Flex)` flex-wrap: wrap; + gap: 10px; `; const FlexDirection = styled(Flex)`