diff --git a/webapp/app/[locale]/_components/navbar/_components/cmcAttribution.tsx b/webapp/app/[locale]/_components/navbar/_components/cmcAttribution.tsx new file mode 100644 index 00000000..17374e1d --- /dev/null +++ b/webapp/app/[locale]/_components/navbar/_components/cmcAttribution.tsx @@ -0,0 +1,19 @@ +import { ExternalLink } from 'components/externalLink' +import { useTranslations } from 'next-intl' + +const cssLink = 'text-orange-500 hover:text-orange-700' + +export const CmcAttribution = function () { + const t = useTranslations('navbar') + return ( +

+ {t.rich('data-attribution', { + link: (chunk: string) => ( + + {chunk} + + ), + })} +

+ ) +} diff --git a/webapp/app/[locale]/_components/navbar/index.tsx b/webapp/app/[locale]/_components/navbar/index.tsx index 8e00fa3d..3879e276 100644 --- a/webapp/app/[locale]/_components/navbar/index.tsx +++ b/webapp/app/[locale]/_components/navbar/index.tsx @@ -23,6 +23,7 @@ import { HemiLogoFull } from './_components/hemiLogo' import { ItemLink, ItemWithSubmenu, NetworkSwitch } from './_components/navItem' import { SocialLinks } from './_components/socialLinks' import { TermsAndConditions } from './_components/termsAndConditions' +import { CmcAttribution } from './_components/cmcAttribution' const ActionableOperations = dynamic( () => @@ -157,10 +158,13 @@ export const Navbar = function () {
  • -
  • +
  • + +
  • +
  • -
  • +
  • diff --git a/webapp/app/[locale]/stake/_components/cmcAttribution.tsx b/webapp/app/[locale]/stake/_components/cmcAttribution.tsx deleted file mode 100644 index 272a0700..00000000 --- a/webapp/app/[locale]/stake/_components/cmcAttribution.tsx +++ /dev/null @@ -1,19 +0,0 @@ -import { ExternalLink } from 'components/externalLink' -import { useTranslations } from 'next-intl' - -export const CmcAttribution = function () { - const t = useTranslations('common') - - return ( -
    -

    - {t('data-attribution')} - - - CoinMarketCap.com - - -

    -
    - ) -} diff --git a/webapp/app/[locale]/stake/dashboard/page.tsx b/webapp/app/[locale]/stake/dashboard/page.tsx index c020d370..b0749c4c 100644 --- a/webapp/app/[locale]/stake/dashboard/page.tsx +++ b/webapp/app/[locale]/stake/dashboard/page.tsx @@ -3,8 +3,6 @@ import { PageTitle } from 'components/pageTitle' import { useTranslations } from 'next-intl' -import { CmcAttribution } from '../_components/cmcAttribution' - import { StakeAssetsTable } from './_components/stakeAssetsTable' import { EarnedPoints, @@ -29,9 +27,6 @@ const Page = function () {
    -
    - -
    ) } diff --git a/webapp/app/[locale]/stake/page.tsx b/webapp/app/[locale]/stake/page.tsx index e25dba17..1fbe08fd 100644 --- a/webapp/app/[locale]/stake/page.tsx +++ b/webapp/app/[locale]/stake/page.tsx @@ -2,7 +2,6 @@ import { useStakeTokens } from 'hooks/useStakeTokens' -import { CmcAttribution } from './_components/cmcAttribution' import { StakeGraph } from './_components/icons/stakeGraph' import { StakeAndEarn } from './_components/stakeAndEarn' import { StakeStrategyTable } from './_components/stakeStrategyTable' @@ -39,9 +38,6 @@ export default function Page() {
    -
    - -
    ) diff --git a/webapp/messages/en.json b/webapp/messages/en.json index 9eb9b711..77f0e90e 100644 --- a/webapp/messages/en.json +++ b/webapp/messages/en.json @@ -13,7 +13,6 @@ "connect-your-wallet": "Connect your Wallet", "copied": "Copied", "copy": "Copy", - "data-attribution": "Data provided by", "erc20-approve-10x-deposits": "Approve 10x the amount of this deposit", "erc20-approve-10x-detailed-description": "By activating 10x approval we automatically add 10x the amount of this transaction as allowance for future ones, saving you money on gas fees and time.", "erc20-extra-approval": "Approve 10x deposits", @@ -183,6 +182,7 @@ "navbar": { "agree-to-terms-and-policy": "By using this application, you agree to the Terms of Use and Privacy Policy", "bitcoinkit": "Hemi Bitcoin Kit", + "data-attribution": "Data provided by CoinMarketCap.com", "demos": "Demos", "explorer": "Explorer", "get-started": "Get Started", diff --git a/webapp/messages/es.json b/webapp/messages/es.json index 79d9df0f..8a6ebf54 100644 --- a/webapp/messages/es.json +++ b/webapp/messages/es.json @@ -13,7 +13,6 @@ "connect-your-wallet": "Conecte su Billetera", "copied": "Copiado", "copy": "Copiar", - "data-attribution": "Datos proporcionados por", "erc20-approve-10x-deposits": "Aprobar 10x el monto de este depósito", "erc20-approve-10x-detailed-description": "Al activar la aprobación 10x, automáticamente agregamos 10 veces el monto de esta transacción como monto autorizado para otras futuras, lo que le permite ahorrar dinero en tarifas de gas y tiempo.", "erc20-extra-approval": "Aprobar 10x este depósito", @@ -183,6 +182,7 @@ "navbar": { "agree-to-terms-and-policy": "Al usar esta aplicación, usted acepta los Términos de Uso y la Política de Privacidad", "bitcoinkit": "Kit de Hemi Bitcoin", + "data-attribution": "Datos proporcionados por CoinMarketCap.com", "demos": "Demos", "explorer": "Explorador", "get-started": "Comenzar",