From 3eaa023682ceaa3ece409fa0e33aaf7076ef17f0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20Paczy=C5=84ski?= Date: Wed, 13 Dec 2023 15:01:32 +0100 Subject: [PATCH 1/2] Modify default blocknative text when connecting with Taho --- patches/@web3-onboard+core+2.21.0.patch | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 patches/@web3-onboard+core+2.21.0.patch diff --git a/patches/@web3-onboard+core+2.21.0.patch b/patches/@web3-onboard+core+2.21.0.patch new file mode 100644 index 000000000..4eab365f7 --- /dev/null +++ b/patches/@web3-onboard+core+2.21.0.patch @@ -0,0 +1,13 @@ +diff --git a/node_modules/@web3-onboard/core/dist/i18n/en.json b/node_modules/@web3-onboard/core/dist/i18n/en.json +index a36ccf0..7a3f568 100644 +--- a/node_modules/@web3-onboard/core/dist/i18n/en.json ++++ b/node_modules/@web3-onboard/core/dist/i18n/en.json +@@ -27,7 +27,7 @@ + "paragraph": "Please approve the connection in your wallet and authorize access to continue." + }, + "mainText": "Connecting...", +- "paragraph": "Make sure to select all accounts that you want to grant access to.", ++ "paragraph": "Granting access to your account.", + "previousConnection": "{wallet} already has a pending connection request, please open the {wallet} app to login and connect.", + "rejectedText": "Connection Rejected!", + "rejectedCTA": "Click here to try again", From 7e9786d69a0234ef1f63d124d59429c8bc00a941 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20Paczy=C5=84ski?= Date: Wed, 13 Dec 2023 16:29:51 +0100 Subject: [PATCH 2/2] Change default text in `web3Onboard` config --- patches/@web3-onboard+core+2.21.0.patch | 13 ------------- src/shared/utils/web3Onboard.ts | 7 +++++++ 2 files changed, 7 insertions(+), 13 deletions(-) delete mode 100644 patches/@web3-onboard+core+2.21.0.patch diff --git a/patches/@web3-onboard+core+2.21.0.patch b/patches/@web3-onboard+core+2.21.0.patch deleted file mode 100644 index 4eab365f7..000000000 --- a/patches/@web3-onboard+core+2.21.0.patch +++ /dev/null @@ -1,13 +0,0 @@ -diff --git a/node_modules/@web3-onboard/core/dist/i18n/en.json b/node_modules/@web3-onboard/core/dist/i18n/en.json -index a36ccf0..7a3f568 100644 ---- a/node_modules/@web3-onboard/core/dist/i18n/en.json -+++ b/node_modules/@web3-onboard/core/dist/i18n/en.json -@@ -27,7 +27,7 @@ - "paragraph": "Please approve the connection in your wallet and authorize access to continue." - }, - "mainText": "Connecting...", -- "paragraph": "Make sure to select all accounts that you want to grant access to.", -+ "paragraph": "Granting access to your account.", - "previousConnection": "{wallet} already has a pending connection request, please open the {wallet} app to login and connect.", - "rejectedText": "Connection Rejected!", - "rejectedCTA": "Click here to try again", diff --git a/src/shared/utils/web3Onboard.ts b/src/shared/utils/web3Onboard.ts index fba0f9a01..91b2c4452 100644 --- a/src/shared/utils/web3Onboard.ts +++ b/src/shared/utils/web3Onboard.ts @@ -86,6 +86,13 @@ const web3Onboard = init({ "--w3o-border-radius": "16px", "--w3o-font-family": "var(--sans)", }, + i18n: { + en: { + connect: { + connectingWallet: { paragraph: "Granting access to your account." }, + }, + }, + }, }) export default web3Onboard