From 4c666d5586b5258971ac7e95a9e29098deede2d8 Mon Sep 17 00:00:00 2001
From: thekiba
Date: Tue, 10 Dec 2024 05:32:02 +0400
Subject: [PATCH] feat(ui): update mobile qr screens layout and wallet list
view
---
packages/ui/src/app/assets/i18n/en.json | 11 ++--
packages/ui/src/app/assets/i18n/ru.json | 13 +++--
.../app/components/icons/at-wallet-icon.tsx | 4 +-
.../ui/src/app/components/qr-code/style.ts | 6 +-
.../src/app/components/wallet-item/style.ts | 4 +-
.../mobile-connection-modal/index.tsx | 23 +++++++-
.../mobile-connection-qr/index.tsx | 23 +++++++-
.../mobile-connection-qr/style.ts | 33 ++++++++++-
.../mobile-universal-modal/index.tsx | 57 +++++++------------
.../mobile-universal-qr/index.tsx | 24 +++++++-
.../mobile-universal-qr/style.ts | 32 ++++++++++-
.../mobile-universal-modal/style.ts | 21 ++++---
12 files changed, 178 insertions(+), 73 deletions(-)
diff --git a/packages/ui/src/app/assets/i18n/en.json b/packages/ui/src/app/assets/i18n/en.json
index e390d862c..47c89efbb 100644
--- a/packages/ui/src/app/assets/i18n/en.json
+++ b/packages/ui/src/app/assets/i18n/en.json
@@ -43,14 +43,15 @@
"loading": "Loading wallets",
"wallets": "Wallets",
"mobileUniversalModal": {
- "connectYourWallet": "Connect your wallet",
- "openWalletOnTelegramOrSelect": "Open Wallet in Telegram or select your wallet to connect",
- "openWalletOnTelegram": "Open Wallet in Telegram",
+ "connectYourWallet": "Connect your TON wallet",
+ "openWalletOnTelegramOrSelect": "Use Wallet in Telegram or choose other application",
+ "openWalletOnTelegram": "Connect Wallet in Telegram",
+ "chooseOtherApplication": "Choose other application",
"openLink": "Open Link",
"scan": "Scan with your mobile wallet"
},
"desktopUniversalModal": {
- "connectYourWallet": "Connect your wallet",
+ "connectYourWallet": "Connect your TON wallet",
"scan": "Scan with your mobile wallet",
"availableWallets": "Available wallets"
},
@@ -66,7 +67,7 @@
"dontHaveExtension": "Seems you don't have installed {{ name }} browser extension",
"getWallet": "Get {{ name }}",
"continueOnDesktop": "Continue in {{ name }} on desktop…",
- "openWalletOnTelegram": "Open Wallet in Telegram on desktop",
+ "openWalletOnTelegram": "Connect Wallet in Telegram on desktop",
"connectionDeclined": "Connection declined"
},
"infoModal": {
diff --git a/packages/ui/src/app/assets/i18n/ru.json b/packages/ui/src/app/assets/i18n/ru.json
index e7dd3ddce..5207b3c9a 100644
--- a/packages/ui/src/app/assets/i18n/ru.json
+++ b/packages/ui/src/app/assets/i18n/ru.json
@@ -2,9 +2,9 @@
"common": {
"close": "Закрыть",
"openWallet": "Открыть кошелёк",
- "copyLink": "Копировать ссылку",
+ "copyLink": "Копировать",
"linkCopied": "Ссылка скопирована",
- "copied": "Ссылка скопирована",
+ "copied": "Скопировано",
"yourWallet": "Ваш кошелёк",
"retry": "Повторить",
"get": "Скачать",
@@ -40,17 +40,18 @@
"popular": "Популярен"
},
"walletModal": {
- "loading": "Кошельки загружаются",
+ "loading": "Кошельки загружаются",
"wallets": "Кошельки",
"mobileUniversalModal": {
"connectYourWallet": "Подключите кошелёк",
- "openWalletOnTelegramOrSelect": "Подключите Wallet в Telegram или выберете кошелёк для подключения",
+ "openWalletOnTelegramOrSelect": "Подключите Wallet в Telegram или выберете другое приложение",
"openWalletOnTelegram": "Открыть Wallet в Telegram",
- "openLink": "Открыть ссылку",
+ "chooseOtherApplication": "Выберите другое приложение",
+ "openLink": "Открыть",
"scan": "Отсканируйте камерой вашего телефона"
},
"desktopUniversalModal": {
- "connectYourWallet": "Подключите кошелёк",
+ "connectYourWallet": "Подключите TON кошелёк",
"scan": "Отсканируйте QR-код камерой вашего телефона",
"availableWallets": "Доступные кошельки"
},
diff --git a/packages/ui/src/app/components/icons/at-wallet-icon.tsx b/packages/ui/src/app/components/icons/at-wallet-icon.tsx
index 06891581d..dc9fc740f 100644
--- a/packages/ui/src/app/components/icons/at-wallet-icon.tsx
+++ b/packages/ui/src/app/components/icons/at-wallet-icon.tsx
@@ -15,8 +15,8 @@ export const AtWalletIcon: Component = props => {