diff --git a/package.json b/package.json index 48b56c526..792bbe049 100644 --- a/package.json +++ b/package.json @@ -12,10 +12,10 @@ "@portis/web3": "^2.0.0-beta.59", "@toruslabs/torus-embed": "^1.8.6", "@walletconnect/web3-provider": "^1.3.1", - "@ensdomains/address-encoder": "^0.2.5", + "@ensdomains/address-encoder": "^0.2.6", "@ensdomains/mock": "^2.0.34", "@ensdomains/react-ens-address": "^0.0.27", - "@ensdomains/ui": "^3.0.57", + "@ensdomains/ui": "^3.0.58", "apollo-cache-inmemory": "^1.2.9", "apollo-client": "^2.4.5", "apollo-link": "^1.2.2", diff --git a/public/locales/cn.json b/public/locales/cn.json index 19307790d..9b15b55cb 100644 --- a/public/locales/cn.json +++ b/public/locales/cn.json @@ -159,8 +159,11 @@ "text": "等待交易被打包" }, "pricer": { + "gasDescription": "Estimated Gas Price (Step 1 + Step 3). The gas price will flucuate.", "pricePerAmount": "当前选定时长的注册价格", "registrationPeriodLabel": "注册期", + "registrationPriceLabel": "Registration price to pay", + "totalDescription": "Estimated Total (Price + Gas). The gas price is based at {{gasPriceToGweiSlow}}-{{gasPriceToGweiFast}} Gwei.", "totalPriceLabel": "支付总额", "yearUnit": "年份" }, @@ -189,6 +192,7 @@ "step1": { "label": "第 1 步", "text": "需要在钱包中确认一笔交易,这是完成域名注册所需的两笔交易中的第一笔。", + "text2": "If the second transaction is not processed within 24 hours of the first, you will need to start again from step 1.", "title": "请求注册" }, "step2": { diff --git a/public/locales/de.json b/public/locales/de.json index b05ce5f38..1756fd311 100644 --- a/public/locales/de.json +++ b/public/locales/de.json @@ -163,8 +163,11 @@ "text": "Tx ausstehend" }, "pricer": { + "gasDescription": "Estimated Gas Price (Step 1 + Step 3). The gas price will flucuate.", "pricePerAmount": "Price per amount of time selected", "registrationPeriodLabel": "Registration Period", + "registrationPriceLabel": "Registration price to pay", + "totalDescription": "Estimated Total (Price + Gas). The gas price is based at {{gasPriceToGweiSlow}}-{{gasPriceToGweiFast}} Gwei.", "totalPriceLabel": "Gesamtpreis", "yearUnit": "Jahr" }, @@ -193,6 +196,7 @@ "step1": { "label": "Schritt 1", "text": "Ihr Wallet wird sich öffnen und Sie werden gebeten, die erste von zwei für die Registrierung erforderlichen Transaktionen zu bestätigen.", + "text2": "If the second transaction is not processed within 24 hours of the first, you will need to start again from step 1.", "title": "Anfrage zur Registrierung" }, "step2": { diff --git a/public/locales/en.json b/public/locales/en.json index 3976197f4..ec21b260c 100644 --- a/public/locales/en.json +++ b/public/locales/en.json @@ -163,8 +163,11 @@ "text": "Tx Pending" }, "pricer": { + "gasDescription": "Estimated Gas Price (Step 1 + Step 3). The gas price will flucuate.", "pricePerAmount": "Price per amount of time selected", "registrationPeriodLabel": "Registration Period", + "registrationPriceLabel": "Registration price to pay", + "totalDescription": "Estimated Total (Price + Gas). The gas price is based at {{gasPriceToGweiSlow}}-{{gasPriceToGweiFast}} Gwei.", "totalPriceLabel": "Total price to pay", "yearUnit": "year" }, @@ -193,6 +196,7 @@ "step1": { "label": "Step 1", "text": "Your wallet will open and you will be asked to confirm the first of two transactions required for registration.", + "text2": "If the second transaction is not processed within 24 hours of the first, you will need to start again from step 1.", "title": "Request to register" }, "step2": { diff --git a/public/locales/es.json b/public/locales/es.json index b5aa1c735..cb7f444f7 100644 --- a/public/locales/es.json +++ b/public/locales/es.json @@ -163,8 +163,11 @@ "text": "Tx Pendiente" }, "pricer": { + "gasDescription": "Estimated Gas Price (Step 1 + Step 3). The gas price will flucuate.", "pricePerAmount": "Price per amount of time selected", "registrationPeriodLabel": "Periodo de registración", + "registrationPriceLabel": "Registration price to pay", + "totalDescription": "Estimated Total (Price + Gas). The gas price is based at {{gasPriceToGweiSlow}}-{{gasPriceToGweiFast}} Gwei.", "totalPriceLabel": "Precio total a pagar", "yearUnit": "año" }, @@ -193,6 +196,7 @@ "step1": { "label": "Paso 1", "text": "Tu cartera se abrirá y se te pedirá que confirmes la primera de las dos transacciones necesarias para el registro", + "text2": "If the second transaction is not processed within 24 hours of the first, you will need to start again from step 1.", "title": "Solicitud de registro" }, "step2": { diff --git a/public/locales/fr.json b/public/locales/fr.json index 5fbe6707a..51a22d68c 100644 --- a/public/locales/fr.json +++ b/public/locales/fr.json @@ -163,8 +163,11 @@ "text": "Transaction en attente" }, "pricer": { + "gasDescription": "Estimated Gas Price (Step 1 + Step 3). The gas price will flucuate.", "pricePerAmount": "Price per amount of time selected", "registrationPeriodLabel": "Période d'enregistrement", + "registrationPriceLabel": "Registration price to pay", + "totalDescription": "Estimated Total (Price + Gas). The gas price is based at {{gasPriceToGweiSlow}}-{{gasPriceToGweiFast}} Gwei.", "totalPriceLabel": "Prix total à payer", "yearUnit": "année" }, @@ -193,6 +196,7 @@ "step1": { "label": "Étape 1", "text": "Votre portefeuille s'ouvrira et il vous sera demandé de confirmer la première des deux transactions requises pour l'inscription.", + "text2": "If the second transaction is not processed within 24 hours of the first, you will need to start again from step 1.", "title": "Demande d'enregistrement" }, "step2": { diff --git a/public/locales/ja.json b/public/locales/ja.json index 70ac41c25..8993c74ee 100644 --- a/public/locales/ja.json +++ b/public/locales/ja.json @@ -161,8 +161,11 @@ "text": "保留中のTx" }, "pricer": { + "gasDescription": "Estimated Gas Price (Step 1 + Step 3). The gas price will flucuate.", "pricePerAmount": "Price per amount of time selected", "registrationPeriodLabel": "登録期間", + "registrationPriceLabel": "Registration price to pay", + "totalDescription": "Estimated Total (Price + Gas). The gas price is based at {{gasPriceToGweiSlow}}-{{gasPriceToGweiFast}} Gwei.", "totalPriceLabel": "お支払合計額", "yearUnit": "年" }, @@ -191,6 +194,7 @@ "step1": { "label": "ステップ1", "text": "ウォレットが開き、登録に必要な2つのトランザクションのうち最初のトランザクションの確認を求められます。", + "text2": "If the second transaction is not processed within 24 hours of the first, you will need to start again from step 1.", "title": "登録のリクエスト" }, "step2": { diff --git a/public/locales/ko.json b/public/locales/ko.json index 73075bfc6..3c05e3f9f 100644 --- a/public/locales/ko.json +++ b/public/locales/ko.json @@ -161,8 +161,11 @@ "text": "트랜잭션 보류" }, "pricer": { + "gasDescription": "Estimated Gas Price (Step 1 + Step 3). The gas price will flucuate.", "pricePerAmount": "Price per amount of time selected", "registrationPeriodLabel": "등록 기간", + "registrationPriceLabel": "Registration price to pay", + "totalDescription": "Estimated Total (Price + Gas). The gas price is based at {{gasPriceToGweiSlow}}-{{gasPriceToGweiFast}} Gwei.", "totalPriceLabel": "결제할 총 금액", "yearUnit": "년" }, @@ -191,6 +194,7 @@ "step1": { "label": "단계 1", "text": "지갑 화면이 열리고 등록에 필요한 두 개의 트랜잭션 중 첫번째 트랜잭션에 대한 컨펌 요청이 있을 것입니다.", + "text2": "If the second transaction is not processed within 24 hours of the first, you will need to start again from step 1.", "title": "등록 요청" }, "step2": { diff --git a/public/locales/pl.json b/public/locales/pl.json index a3c0e91a6..8384df2ff 100644 --- a/public/locales/pl.json +++ b/public/locales/pl.json @@ -165,8 +165,11 @@ "text": "Oczekujący Tx" }, "pricer": { + "gasDescription": "Estimated Gas Price (Step 1 + Step 3). The gas price will flucuate.", "pricePerAmount": "Price per amount of time selected", "registrationPeriodLabel": "Czas rejestracji", + "registrationPriceLabel": "Registration price to pay", + "totalDescription": "Estimated Total (Price + Gas). The gas price is based at {{gasPriceToGweiSlow}}-{{gasPriceToGweiFast}} Gwei.", "totalPriceLabel": "Łączna kwota do zapłaty", "yearUnit": "rok" }, @@ -195,6 +198,7 @@ "step1": { "label": "Krok 1", "text": "Twój portfel zostanie otwarty i będziesz poproszony o potwierdzenie dwóch transakcji wymaganych do rejestracji", + "text2": "If the second transaction is not processed within 24 hours of the first, you will need to start again from step 1.", "title": "Wniosek o rejestrację" }, "step2": { diff --git a/public/locales/ru.json b/public/locales/ru.json index edb40fda9..b94bf39be 100644 --- a/public/locales/ru.json +++ b/public/locales/ru.json @@ -165,8 +165,11 @@ "text": "TX в ожидании" }, "pricer": { + "gasDescription": "Estimated Gas Price (Step 1 + Step 3). The gas price will flucuate.", "pricePerAmount": "Price per amount of time selected", "registrationPeriodLabel": "Срок регистрации", + "registrationPriceLabel": "Registration price to pay", + "totalDescription": "Estimated Total (Price + Gas). The gas price is based at {{gasPriceToGweiSlow}}-{{gasPriceToGweiFast}} Gwei.", "totalPriceLabel": "Общие сумма к оплате", "yearUnit": "год" }, @@ -195,6 +198,7 @@ "step1": { "label": "Шаг 1", "text": "Ваш кошелёк откроется и вас попросят подтвердить первые две транзакции, необходимые для регистрации.", + "text2": "If the second transaction is not processed within 24 hours of the first, you will need to start again from step 1.", "title": "Запрос на регистрацию" }, "step2": { diff --git a/public/locales/vi.json b/public/locales/vi.json index 50e3bc83a..9e9b9afeb 100644 --- a/public/locales/vi.json +++ b/public/locales/vi.json @@ -161,8 +161,11 @@ "text": "Đang xử lý giao dịch" }, "pricer": { + "gasDescription": "Estimated Gas Price (Step 1 + Step 3). The gas price will flucuate.", "pricePerAmount": "Price per amount of time selected", "registrationPeriodLabel": "Thời gian đăng ký", + "registrationPriceLabel": "Registration price to pay", + "totalDescription": "Estimated Total (Price + Gas). The gas price is based at {{gasPriceToGweiSlow}}-{{gasPriceToGweiFast}} Gwei.", "totalPriceLabel": "Tổng giá thanh toán", "yearUnit": "Năm" }, @@ -191,6 +194,7 @@ "step1": { "label": "Bước 1", "text": "Ví của bạn sẽ mở và bạn sẽ được yêu cầu xác nhận 2 giao dịch bắt buộc để đăng ký", + "text2": "If the second transaction is not processed within 24 hours of the first, you will need to start again from step 1.", "title": "Yêu cầu đăng ký" }, "step2": { diff --git a/src/components/Links/ContentHashLink.js b/src/components/Links/ContentHashLink.js index f5e3b98dc..638891df1 100644 --- a/src/components/Links/ContentHashLink.js +++ b/src/components/Links/ContentHashLink.js @@ -2,7 +2,6 @@ import React from 'react' import styled from '@emotion/styled/macro' import { ReactComponent as ExternalLinkIcon } from '../Icons/externalLink.svg' import { decodeContenthash, encodeContenthash } from '@ensdomains/ui' -import useNetworkInfo from '../NetworkInformation/useNetworkInfo' const ContentHashLinkContainer = styled('a')` display: inline-block; @@ -29,7 +28,6 @@ const DecodedError = styled('div')` ` const ContentHashLink = ({ value, contentType, domain }) => { - const { networkId } = useNetworkInfo() if (contentType === 'oldcontent') { return