Skip to content

Commit

Permalink
fix: compliance tooltip on project card (#2541)
Browse files Browse the repository at this point in the history
  • Loading branch information
flagrede authored Nov 12, 2024
1 parent ea549b1 commit f3388e8
Show file tree
Hide file tree
Showing 4 changed files with 44 additions and 26 deletions.
5 changes: 5 additions & 0 deletions web-marketplace/src/assets/svgs/logos/hectares.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
28 changes: 16 additions & 12 deletions web-marketplace/src/lib/i18n/locales/en.po
Original file line number Diff line number Diff line change
Expand Up @@ -261,7 +261,7 @@ msgstr ""
msgid "A unique identifier that tracks and verifies a specific transaction on the blockchain."
msgstr ""

#: src/components/organisms/TerrasosFooter/TerrasosFooter.constants.ts:45
#: src/components/organisms/TerrasosFooter/TerrasosFooter.constants.ts:52
#: src/components/organisms/TerrasosHeader/TerrasosHeader.constants.ts:18
msgid "About Us"
msgstr ""
Expand All @@ -278,7 +278,7 @@ msgstr ""
msgid "Act now"
msgstr ""

#: src/components/organisms/TerrasosFooter/TerrasosFooter.constants.ts:75
#: src/components/organisms/TerrasosFooter/TerrasosFooter.constants.ts:82
msgid "Act Now - Tebu"
msgstr ""

Expand Down Expand Up @@ -1069,7 +1069,7 @@ msgstr ""
msgid "Consumer/Individual/myself"
msgstr ""

#: src/components/organisms/TerrasosFooter/TerrasosFooter.constants.ts:66
#: src/components/organisms/TerrasosFooter/TerrasosFooter.constants.ts:73
#: src/components/organisms/TerrasosHeader/TerrasosHeader.constants.ts:69
msgid "Contact"
msgstr ""
Expand All @@ -1078,7 +1078,7 @@ msgstr ""
msgid "Contributes minimally"
msgstr ""

#: src/components/organisms/TerrasosFooter/TerrasosFooter.constants.ts:96
#: src/components/organisms/TerrasosFooter/TerrasosFooter.constants.ts:103
msgid "Cookies Policy"
msgstr ""

Expand Down Expand Up @@ -1881,7 +1881,7 @@ msgstr ""
msgid "Gallery photos"
msgstr ""

#: src/components/organisms/TerrasosFooter/TerrasosFooter.constants.ts:61
#: src/components/organisms/TerrasosFooter/TerrasosFooter.constants.ts:68
#: src/components/organisms/TerrasosHeader/TerrasosHeader.constants.ts:45
msgid "Geo-Viewer"
msgstr ""
Expand All @@ -1898,7 +1898,7 @@ msgstr ""
msgid "Grasslands-based credits"
msgstr ""

#: src/components/organisms/TerrasosFooter/TerrasosFooter.constants.ts:53
#: src/components/organisms/TerrasosFooter/TerrasosFooter.constants.ts:60
#: src/components/organisms/TerrasosHeader/TerrasosHeader.constants.ts:26
msgid "Habitat banks"
msgstr ""
Expand All @@ -1911,6 +1911,10 @@ msgstr ""
msgid "Hash"
msgstr ""

#: src/pages/Projects/AllProjects/AllProjects.TerrasosCredits.tsx:59
msgid "hectares"
msgstr ""

#: src/components/organisms/BasicInfoForm/BasicInfoForm.tsx:193
msgid "Hectares"
msgstr ""
Expand Down Expand Up @@ -2568,7 +2572,7 @@ msgstr ""
msgid "operator"
msgstr ""

#: src/components/organisms/TerrasosFooter/TerrasosFooter.constants.ts:79
#: src/components/organisms/TerrasosFooter/TerrasosFooter.constants.ts:86
msgid "Opportunities"
msgstr ""

Expand All @@ -2592,7 +2596,7 @@ msgstr ""
msgid "Other regenerative grazing practice"
msgstr ""

#: src/components/organisms/TerrasosFooter/TerrasosFooter.constants.ts:49
#: src/components/organisms/TerrasosFooter/TerrasosFooter.constants.ts:56
msgid "Our Services"
msgstr ""

Expand Down Expand Up @@ -2771,7 +2775,7 @@ msgstr ""
msgid "Powered by"
msgstr ""

#: src/components/organisms/TerrasosFooter/TerrasosFooter.constants.ts:83
#: src/components/organisms/TerrasosFooter/TerrasosFooter.constants.ts:90
msgid "PQR Request"
msgstr ""

Expand Down Expand Up @@ -2857,7 +2861,7 @@ msgstr ""
msgid "Privacy"
msgstr ""

#: src/components/organisms/TerrasosFooter/TerrasosFooter.constants.ts:91
#: src/components/organisms/TerrasosFooter/TerrasosFooter.constants.ts:98
msgid "Privacy Policy"
msgstr ""

Expand Down Expand Up @@ -3794,7 +3798,7 @@ msgstr ""
msgid "Terms"
msgstr ""

#: src/components/organisms/TerrasosFooter/TerrasosFooter.constants.ts:87
#: src/components/organisms/TerrasosFooter/TerrasosFooter.constants.ts:94
msgid "Terms and Conditions"
msgstr ""

Expand Down Expand Up @@ -4443,7 +4447,7 @@ msgstr ""
msgid "We've just sent a confirmation email to:"
msgstr ""

#: src/components/organisms/TerrasosFooter/TerrasosFooter.constants.ts:57
#: src/components/organisms/TerrasosFooter/TerrasosFooter.constants.ts:64
#: src/components/organisms/TerrasosHeader/TerrasosHeader.constants.ts:41
msgid "What is Tebu"
msgstr ""
Expand Down
28 changes: 16 additions & 12 deletions web-marketplace/src/lib/i18n/locales/es.po
Original file line number Diff line number Diff line change
Expand Up @@ -258,7 +258,7 @@ msgstr "Un tercero que proporciona una evaluación independiente e imparcial del
msgid "A unique identifier that tracks and verifies a specific transaction on the blockchain."
msgstr "Un identificador único que rastrea y verifica una transacción específica en la cadena de bloques."

#: src/components/organisms/TerrasosFooter/TerrasosFooter.constants.ts:45
#: src/components/organisms/TerrasosFooter/TerrasosFooter.constants.ts:52
#: src/components/organisms/TerrasosHeader/TerrasosHeader.constants.ts:18
msgid "About Us"
msgstr "Sobre nosotros"
Expand All @@ -275,7 +275,7 @@ msgstr "Acres"
msgid "Act now"
msgstr "Actúa ahora"

#: src/components/organisms/TerrasosFooter/TerrasosFooter.constants.ts:75
#: src/components/organisms/TerrasosFooter/TerrasosFooter.constants.ts:82
msgid "Act Now - Tebu"
msgstr "Actúa ahora - Tebu"

Expand Down Expand Up @@ -1066,7 +1066,7 @@ msgstr "La conectividad permite el flujo de especies y procesos ecológicos que
msgid "Consumer/Individual/myself"
msgstr "Consumidor/Individuo/yo mismo"

#: src/components/organisms/TerrasosFooter/TerrasosFooter.constants.ts:66
#: src/components/organisms/TerrasosFooter/TerrasosFooter.constants.ts:73
#: src/components/organisms/TerrasosHeader/TerrasosHeader.constants.ts:69
msgid "Contact"
msgstr "Contacto"
Expand All @@ -1075,7 +1075,7 @@ msgstr "Contacto"
msgid "Contributes minimally"
msgstr "Contribuye mínimamente"

#: src/components/organisms/TerrasosFooter/TerrasosFooter.constants.ts:96
#: src/components/organisms/TerrasosFooter/TerrasosFooter.constants.ts:103
msgid "Cookies Policy"
msgstr "Política de cookies"

Expand Down Expand Up @@ -1878,7 +1878,7 @@ msgstr "¡Fondos solicitados exitosamente!"
msgid "Gallery photos"
msgstr "Fotos de la galería"

#: src/components/organisms/TerrasosFooter/TerrasosFooter.constants.ts:61
#: src/components/organisms/TerrasosFooter/TerrasosFooter.constants.ts:68
#: src/components/organisms/TerrasosHeader/TerrasosHeader.constants.ts:45
msgid "Geo-Viewer"
msgstr "Visor geográfico"
Expand All @@ -1895,7 +1895,7 @@ msgstr "Los pastizales se definen como tierras formadas por grandes áreas abier
msgid "Grasslands-based credits"
msgstr "Créditos basados en pastizales"

#: src/components/organisms/TerrasosFooter/TerrasosFooter.constants.ts:53
#: src/components/organisms/TerrasosFooter/TerrasosFooter.constants.ts:60
#: src/components/organisms/TerrasosHeader/TerrasosHeader.constants.ts:26
msgid "Habitat banks"
msgstr "Bancos de hábitat"
Expand All @@ -1908,6 +1908,10 @@ msgstr "picadillo"
msgid "Hash"
msgstr "Picadillo"

#: src/pages/Projects/AllProjects/AllProjects.TerrasosCredits.tsx:59
msgid "hectares"
msgstr "hectáreas"

#: src/components/organisms/BasicInfoForm/BasicInfoForm.tsx:193
msgid "Hectares"
msgstr "Hectáreas"
Expand Down Expand Up @@ -2565,7 +2569,7 @@ msgstr "¡Ups! Página no encontrada."
msgid "operator"
msgstr "operador"

#: src/components/organisms/TerrasosFooter/TerrasosFooter.constants.ts:79
#: src/components/organisms/TerrasosFooter/TerrasosFooter.constants.ts:86
msgid "Opportunities"
msgstr "Oportunidades"

Expand All @@ -2589,7 +2593,7 @@ msgstr "Nombre de la organización"
msgid "Other regenerative grazing practice"
msgstr "Otras prácticas de pastoreo regenerativo"

#: src/components/organisms/TerrasosFooter/TerrasosFooter.constants.ts:49
#: src/components/organisms/TerrasosFooter/TerrasosFooter.constants.ts:56
msgid "Our Services"
msgstr "Nuestros servicios"

Expand Down Expand Up @@ -2768,7 +2772,7 @@ msgstr "Código Postal"
msgid "Powered by"
msgstr "Desarrollado por"

#: src/components/organisms/TerrasosFooter/TerrasosFooter.constants.ts:83
#: src/components/organisms/TerrasosFooter/TerrasosFooter.constants.ts:90
msgid "PQR Request"
msgstr "Solicitud PQR"

Expand Down Expand Up @@ -2854,7 +2858,7 @@ msgstr "Antes de adoptar estas prácticas regenerativas (hace 5 años) ¿cómo u
msgid "Privacy"
msgstr "Privacidad"

#: src/components/organisms/TerrasosFooter/TerrasosFooter.constants.ts:91
#: src/components/organisms/TerrasosFooter/TerrasosFooter.constants.ts:98
msgid "Privacy Policy"
msgstr "política de privacidad"

Expand Down Expand Up @@ -3791,7 +3795,7 @@ msgstr "Cuente la historia más profunda de lo que hace que este proyecto sea es
msgid "Terms"
msgstr "Términos"

#: src/components/organisms/TerrasosFooter/TerrasosFooter.constants.ts:87
#: src/components/organisms/TerrasosFooter/TerrasosFooter.constants.ts:94
msgid "Terms and Conditions"
msgstr "Términos y condiciones"

Expand Down Expand Up @@ -4444,7 +4448,7 @@ msgstr "Le enviaremos su recibo a la dirección de correo electrónico que apare
msgid "We've just sent a confirmation email to:"
msgstr "Acabamos de enviar un correo electrónico de confirmación a:"

#: src/components/organisms/TerrasosFooter/TerrasosFooter.constants.ts:57
#: src/components/organisms/TerrasosFooter/TerrasosFooter.constants.ts:64
#: src/components/organisms/TerrasosHeader/TerrasosHeader.constants.ts:41
msgid "What is Tebu"
msgstr "¿Qué es Tebu?"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { msg } from '@lingui/macro';
import { useLingui } from '@lingui/react';

import HectaresBadge from 'web-components/src/components/icons/terrasos/HectaresBadge';
import InfoTooltip from 'web-components/src/components/tooltip/InfoTooltip';

import { NormalizeProject } from 'lib/normalizers/projects/normalizeProjectsWithMetadata';
Expand All @@ -10,6 +10,7 @@ import {
VOLUNTARY_MARKET_TOOLTIP,
} from './AllProjects.constants';

import hectaresLogo from 'assets/svgs/logos/hectares.svg';
import tebuLogo from 'assets/svgs/logos/tebu.svg';

type Props = {
Expand Down Expand Up @@ -53,7 +54,11 @@ export const TerrasosCredits = ({
placement="top"
title={_(COMPLIANCE_MARKET_TOOLTIP)}
>
<HectaresBadge className="ml-[3px]" />
<img
src={hectaresLogo}
alt={_(msg`hectares`)}
className="ml-[3px]"
/>
</InfoTooltip>
</span>
)}
Expand Down

0 comments on commit f3388e8

Please sign in to comment.