Skip to content

Commit 0dbdd37

Browse files
feat: nano contract list component [7] (#435)
* feat: add nano contract list component * feat: add nano contract feature toggle to dashboard * refactor: TwoOptionsToggle component to simplify its mechanics
1 parent d391fe1 commit 0dbdd37

21 files changed

+913
-194
lines changed

locale/da/texts.po

Lines changed: 37 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -335,14 +335,21 @@ msgstr "Symbolet er en kortere version af token-navnet"
335335
msgid "E.g. HTR"
336336
msgstr "F.eks. HTR"
337337

338-
#: src/screens/Dashboard.js:67 src/screens/RegisterTokenManual.js:147
338+
#. Only show the toggle button when Nano Contract is enabled to the wallet
339+
#: src/screens/Dashboard.js:130 src/screens/Dashboard.js:187
340+
msgid "Tokens"
341+
msgstr "Tokens"
342+
343+
#. Only show the toggle button when Nano Contract is enabled to the wallet
344+
#: src/components/NanoContract/NanoContractsList.js:71
345+
#: src/screens/Dashboard.js:131
346+
msgid "Nano Contracts"
347+
msgstr ""
348+
349+
#: src/screens/Dashboard.js:178 src/screens/RegisterTokenManual.js:147
339350
msgid "Register token"
340351
msgstr "Registrer token"
341352

342-
#: src/screens/Dashboard.js:74
343-
msgid "TOKENS"
344-
msgstr "TOKENS"
345-
346353
#: src/screens/InitWallet.js:61
347354
msgid "Welcome to Hathor Wallet!"
348355
msgstr "Velkommen til Hathor Wallet!"
@@ -987,29 +994,29 @@ msgstr "Transaktion"
987994
msgid "Open"
988995
msgstr "Åben"
989996

990-
#: src/components/AskForPushNotification.js:22
997+
#: src/components/AskForPushNotification.js:29
991998
msgid "Do you want to enable push notifications for this wallet?"
992999
msgstr ""
9931000

994-
#: src/components/AskForPushNotification.js:23
1001+
#: src/components/AskForPushNotification.js:30
9951002
msgid "You can always change this later in the settings menu"
9961003
msgstr ""
9971004

998-
#: src/components/AskForPushNotification.js:24
1005+
#: src/components/AskForPushNotification.js:31
9991006
msgid "Yes, enable"
10001007
msgstr ""
10011008

1002-
#: src/components/AskForPushNotificationRefresh.js:28
1009+
#: src/components/AskForPushNotificationRefresh.js:35
10031010
msgid "Refresh your push notification registration"
10041011
msgstr ""
10051012

1006-
#: src/components/AskForPushNotificationRefresh.js:29
1013+
#: src/components/AskForPushNotificationRefresh.js:36
10071014
msgid ""
10081015
"In order to keep receiving push notifications, you need to refresh your "
10091016
"registration. Do you want to do it now?"
10101017
msgstr ""
10111018

1012-
#: src/components/AskForPushNotificationRefresh.js:30
1019+
#: src/components/AskForPushNotificationRefresh.js:37
10131020
msgid "Refresh"
10141021
msgstr ""
10151022

@@ -1090,15 +1097,15 @@ msgstr "Ingen internetforbindelse"
10901097
msgid "Public Explorer"
10911098
msgstr "Public Explorer"
10921099

1093-
#: src/components/PushTxDetailsModal.js:69 src/components/TxDetailsModal.js:103
1100+
#: src/components/PushTxDetailsModal.js:76 src/components/TxDetailsModal.js:101
10941101
msgid "Date & Time"
10951102
msgstr "Dato & Tid"
10961103

1097-
#: src/components/PushTxDetailsModal.js:70
1104+
#: src/components/PushTxDetailsModal.js:77
10981105
msgid "ID"
10991106
msgstr "ID"
11001107

1101-
#: src/components/PushTxDetailsModal.js:94
1108+
#: src/components/PushTxDetailsModal.js:101
11021109
msgid "New Transaction"
11031110
msgstr ""
11041111

@@ -1119,16 +1126,16 @@ msgstr "Del"
11191126
msgid "Propagating transaction to the network."
11201127
msgstr ""
11211128

1122-
#: src/components/ShowPushNotificationTxDetails.js:8
1129+
#: src/components/ShowPushNotificationTxDetails.js:15
11231130
msgid "Transation not found"
11241131
msgstr ""
11251132

1126-
#: src/components/ShowPushNotificationTxDetails.js:9
1133+
#: src/components/ShowPushNotificationTxDetails.js:16
11271134
msgid ""
11281135
"The transaction has not arrived yet in your wallet. Do you want to retry?"
11291136
msgstr ""
11301137

1131-
#: src/components/ShowPushNotificationTxDetails.js:10
1138+
#: src/components/ShowPushNotificationTxDetails.js:17
11321139
msgid "Retry"
11331140
msgstr ""
11341141

@@ -1212,5 +1219,16 @@ msgstr ""
12121219
msgid "Custom network"
12131220
msgstr ""
12141221

1215-
#~ msgid "I understand the risks of using a mobile wallet"
1216-
#~ msgstr "Jeg forstår risikoen ved at bruge en mobil wallet"
1222+
#: src/components/NanoContract/NoNanoContracts.js:16
1223+
msgid "No Nano Contracts"
1224+
msgstr ""
1225+
1226+
#: src/components/NanoContract/NoNanoContracts.js:18
1227+
msgid ""
1228+
"You can keep track of your registered Nano Contracts here once you have "
1229+
"registered them."
1230+
msgstr ""
1231+
1232+
#: src/components/NanoContract/RegisterNewNanoContractButton.js:22
1233+
msgid "Register new"
1234+
msgstr ""

locale/pt-br/texts.po

Lines changed: 35 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -344,14 +344,21 @@ msgstr "O símbolo é a versão reduzida do nome do seu token"
344344
msgid "E.g. HTR"
345345
msgstr "Por exemplo, HTR"
346346

347-
#: src/screens/Dashboard.js:67 src/screens/RegisterTokenManual.js:147
347+
#. Only show the toggle button when Nano Contract is enabled to the wallet
348+
#: src/screens/Dashboard.js:130 src/screens/Dashboard.js:187
349+
msgid "Tokens"
350+
msgstr "Tokens"
351+
352+
#. Only show the toggle button when Nano Contract is enabled to the wallet
353+
#: src/components/NanoContract/NanoContractsList.js:71
354+
#: src/screens/Dashboard.js:131
355+
msgid "Nano Contracts"
356+
msgstr "Nano Contracts"
357+
358+
#: src/screens/Dashboard.js:178 src/screens/RegisterTokenManual.js:147
348359
msgid "Register token"
349360
msgstr "Registrar um token"
350361

351-
#: src/screens/Dashboard.js:74
352-
msgid "TOKENS"
353-
msgstr "TOKENS"
354-
355362
#: src/screens/InitWallet.js:61
356363
msgid "Welcome to Hathor Wallet!"
357364
msgstr "Bem vindo à Hathor Wallet!"
@@ -1014,31 +1021,31 @@ msgstr "Transação"
10141021
msgid "Open"
10151022
msgstr "Abrir"
10161023

1017-
#: src/components/AskForPushNotification.js:22
1024+
#: src/components/AskForPushNotification.js:29
10181025
msgid "Do you want to enable push notifications for this wallet?"
10191026
msgstr "Você deseja habilitar as notificações para esta wallet?"
10201027

1021-
#: src/components/AskForPushNotification.js:23
1028+
#: src/components/AskForPushNotification.js:30
10221029
msgid "You can always change this later in the settings menu"
10231030
msgstr "Você sempre pode alterar as configurações depois no menu"
10241031

1025-
#: src/components/AskForPushNotification.js:24
1032+
#: src/components/AskForPushNotification.js:31
10261033
msgid "Yes, enable"
10271034
msgstr "Sim, habilitar"
10281035

1029-
#: src/components/AskForPushNotificationRefresh.js:28
1036+
#: src/components/AskForPushNotificationRefresh.js:35
10301037
msgid "Refresh your push notification registration"
10311038
msgstr "Atualize sua configuração de notificação"
10321039

1033-
#: src/components/AskForPushNotificationRefresh.js:29
1040+
#: src/components/AskForPushNotificationRefresh.js:36
10341041
msgid ""
10351042
"In order to keep receiving push notifications, you need to refresh your "
10361043
"registration. Do you want to do it now?"
10371044
msgstr ""
10381045
"Para continuar recebendo notificações, é necessário atualizar sua "
10391046
"configuração de notificação. Deseja atualizar agora?"
10401047

1041-
#: src/components/AskForPushNotificationRefresh.js:30
1048+
#: src/components/AskForPushNotificationRefresh.js:37
10421049
msgid "Refresh"
10431050
msgstr "Atualizar"
10441051

@@ -1120,15 +1127,15 @@ msgstr "Sem conexão com a internet"
11201127
msgid "Public Explorer"
11211128
msgstr "Explorer Público"
11221129

1123-
#: src/components/PushTxDetailsModal.js:69 src/components/TxDetailsModal.js:103
1130+
#: src/components/PushTxDetailsModal.js:76 src/components/TxDetailsModal.js:101
11241131
msgid "Date & Time"
11251132
msgstr "Data & Hora"
11261133

1127-
#: src/components/PushTxDetailsModal.js:70
1134+
#: src/components/PushTxDetailsModal.js:77
11281135
msgid "ID"
11291136
msgstr "ID"
11301137

1131-
#: src/components/PushTxDetailsModal.js:94
1138+
#: src/components/PushTxDetailsModal.js:101
11321139
msgid "New Transaction"
11331140
msgstr "Transação"
11341141

@@ -1149,16 +1156,16 @@ msgstr "Compartilhar"
11491156
msgid "Propagating transaction to the network."
11501157
msgstr "Propagando a transação para a rede."
11511158

1152-
#: src/components/ShowPushNotificationTxDetails.js:8
1159+
#: src/components/ShowPushNotificationTxDetails.js:15
11531160
msgid "Transation not found"
11541161
msgstr "Transação não encontrada"
11551162

1156-
#: src/components/ShowPushNotificationTxDetails.js:9
1163+
#: src/components/ShowPushNotificationTxDetails.js:16
11571164
msgid ""
11581165
"The transaction has not arrived yet in your wallet. Do you want to retry?"
11591166
msgstr "A transação ainda não chegou na sua carteira. Deseja tentar novamente?"
11601167

1161-
#: src/components/ShowPushNotificationTxDetails.js:10
1168+
#: src/components/ShowPushNotificationTxDetails.js:17
11621169
msgid "Retry"
11631170
msgstr "Tentar novamente"
11641171

@@ -1248,14 +1255,16 @@ msgstr ""
12481255
msgid "Custom network"
12491256
msgstr "Rede personalizada"
12501257

1251-
#~ msgid "There has been an error upgrading your wallet."
1252-
#~ msgstr "Ocorreu um erro ao atualizar sua wallet."
1253-
1254-
#~ msgid "Please reset it and restore it with your seed."
1255-
#~ msgstr "Por favor resete sua wallet e restaure utilizando sua seed."
1258+
#: src/components/NanoContract/NoNanoContracts.js:16
1259+
msgid "No Nano Contracts"
1260+
msgstr "Nenhum Nano Contract"
12561261

1257-
#~ msgid "Upgrading your wallet, please hang on."
1258-
#~ msgstr "Atualizando sua wallet, por favor aguarde."
1262+
#: src/components/NanoContract/NoNanoContracts.js:18
1263+
msgid ""
1264+
"You can keep track of your registered Nano Contracts here once you have "
1265+
"registered them."
1266+
msgstr "Você pode acompanhar os Nano Contracts registrados nesta tela."
12591267

1260-
#~ msgid "I understand the risks of using a mobile wallet"
1261-
#~ msgstr "Eu entendo os riscos de usar uma wallet de celular"
1268+
#: src/components/NanoContract/RegisterNewNanoContractButton.js:22
1269+
msgid "Register new"
1270+
msgstr "Registrar Nano Contract"

locale/ru-ru/texts.po

Lines changed: 37 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -336,14 +336,21 @@ msgstr "Символ является сокращенной версией им
336336
msgid "E.g. HTR"
337337
msgstr "Например, HTR"
338338

339-
#: src/screens/Dashboard.js:67 src/screens/RegisterTokenManual.js:147
339+
#. Only show the toggle button when Nano Contract is enabled to the wallet
340+
#: src/screens/Dashboard.js:130 src/screens/Dashboard.js:187
341+
msgid "Tokens"
342+
msgstr "ТокенЫ"
343+
344+
#. Only show the toggle button when Nano Contract is enabled to the wallet
345+
#: src/components/NanoContract/NanoContractsList.js:71
346+
#: src/screens/Dashboard.js:131
347+
msgid "Nano Contracts"
348+
msgstr ""
349+
350+
#: src/screens/Dashboard.js:178 src/screens/RegisterTokenManual.js:147
340351
msgid "Register token"
341352
msgstr "Зарегистрировать токен"
342353

343-
#: src/screens/Dashboard.js:74
344-
msgid "TOKENS"
345-
msgstr "ТОКЕНЫ"
346-
347354
#: src/screens/InitWallet.js:61
348355
msgid "Welcome to Hathor Wallet!"
349356
msgstr "Добро пожаловать в Hathor Wallet!"
@@ -991,29 +998,29 @@ msgstr ""
991998
msgid "Open"
992999
msgstr "Открыть"
9931000

994-
#: src/components/AskForPushNotification.js:22
1001+
#: src/components/AskForPushNotification.js:29
9951002
msgid "Do you want to enable push notifications for this wallet?"
9961003
msgstr ""
9971004

998-
#: src/components/AskForPushNotification.js:23
1005+
#: src/components/AskForPushNotification.js:30
9991006
msgid "You can always change this later in the settings menu"
10001007
msgstr ""
10011008

1002-
#: src/components/AskForPushNotification.js:24
1009+
#: src/components/AskForPushNotification.js:31
10031010
msgid "Yes, enable"
10041011
msgstr ""
10051012

1006-
#: src/components/AskForPushNotificationRefresh.js:28
1013+
#: src/components/AskForPushNotificationRefresh.js:35
10071014
msgid "Refresh your push notification registration"
10081015
msgstr ""
10091016

1010-
#: src/components/AskForPushNotificationRefresh.js:29
1017+
#: src/components/AskForPushNotificationRefresh.js:36
10111018
msgid ""
10121019
"In order to keep receiving push notifications, you need to refresh your "
10131020
"registration. Do you want to do it now?"
10141021
msgstr ""
10151022

1016-
#: src/components/AskForPushNotificationRefresh.js:30
1023+
#: src/components/AskForPushNotificationRefresh.js:37
10171024
msgid "Refresh"
10181025
msgstr ""
10191026

@@ -1080,15 +1087,15 @@ msgstr "Нет соединения с интернетом"
10801087
msgid "Public Explorer"
10811088
msgstr "Public Explorer"
10821089

1083-
#: src/components/PushTxDetailsModal.js:69 src/components/TxDetailsModal.js:103
1090+
#: src/components/PushTxDetailsModal.js:76 src/components/TxDetailsModal.js:101
10841091
msgid "Date & Time"
10851092
msgstr "Дата и Время"
10861093

1087-
#: src/components/PushTxDetailsModal.js:70
1094+
#: src/components/PushTxDetailsModal.js:77
10881095
msgid "ID"
10891096
msgstr "ID"
10901097

1091-
#: src/components/PushTxDetailsModal.js:94
1098+
#: src/components/PushTxDetailsModal.js:101
10921099
msgid "New Transaction"
10931100
msgstr ""
10941101

@@ -1109,16 +1116,16 @@ msgstr "Поделиться"
11091116
msgid "Propagating transaction to the network."
11101117
msgstr ""
11111118

1112-
#: src/components/ShowPushNotificationTxDetails.js:8
1119+
#: src/components/ShowPushNotificationTxDetails.js:15
11131120
msgid "Transation not found"
11141121
msgstr ""
11151122

1116-
#: src/components/ShowPushNotificationTxDetails.js:9
1123+
#: src/components/ShowPushNotificationTxDetails.js:16
11171124
msgid ""
11181125
"The transaction has not arrived yet in your wallet. Do you want to retry?"
11191126
msgstr ""
11201127

1121-
#: src/components/ShowPushNotificationTxDetails.js:10
1128+
#: src/components/ShowPushNotificationTxDetails.js:17
11221129
msgid "Retry"
11231130
msgstr ""
11241131

@@ -1201,5 +1208,16 @@ msgstr ""
12011208
msgid "Custom network"
12021209
msgstr ""
12031210

1204-
#~ msgid "I understand the risks of using a mobile wallet"
1205-
#~ msgstr "Я осознаю риски использования мобильного кошелька"
1211+
#: src/components/NanoContract/NoNanoContracts.js:16
1212+
msgid "No Nano Contracts"
1213+
msgstr ""
1214+
1215+
#: src/components/NanoContract/NoNanoContracts.js:18
1216+
msgid ""
1217+
"You can keep track of your registered Nano Contracts here once you have "
1218+
"registered them."
1219+
msgstr ""
1220+
1221+
#: src/components/NanoContract/RegisterNewNanoContractButton.js:22
1222+
msgid "Register new"
1223+
msgstr ""

0 commit comments

Comments
 (0)