Skip to content

Commit

Permalink
feat: nano contract list component [7] (#435)
Browse files Browse the repository at this point in the history
* feat: add nano contract list component
* feat: add nano contract feature toggle to dashboard
* refactor: TwoOptionsToggle component to simplify its mechanics
  • Loading branch information
alexruzenhack authored and andreabadesso committed Jun 24, 2024
1 parent 9bf99f6 commit a59de91
Show file tree
Hide file tree
Showing 21 changed files with 908 additions and 233 deletions.
56 changes: 37 additions & 19 deletions locale/da/texts.po
Original file line number Diff line number Diff line change
Expand Up @@ -335,14 +335,21 @@ msgstr "Symbolet er en kortere version af token-navnet"
msgid "E.g. HTR"
msgstr "F.eks. HTR"

#: src/screens/Dashboard.js:67 src/screens/RegisterTokenManual.js:147
#. Only show the toggle button when Nano Contract is enabled to the wallet
#: src/screens/Dashboard.js:130 src/screens/Dashboard.js:187
msgid "Tokens"
msgstr "Tokens"

#. Only show the toggle button when Nano Contract is enabled to the wallet
#: src/components/NanoContract/NanoContractsList.js:71
#: src/screens/Dashboard.js:131
msgid "Nano Contracts"
msgstr ""

#: src/screens/Dashboard.js:178 src/screens/RegisterTokenManual.js:147
msgid "Register token"
msgstr "Registrer token"

#: src/screens/Dashboard.js:74
msgid "TOKENS"
msgstr "TOKENS"

#: src/screens/InitWallet.js:61
msgid "Welcome to Hathor Wallet!"
msgstr "Velkommen til Hathor Wallet!"
Expand Down Expand Up @@ -987,29 +994,29 @@ msgstr "Transaktion"
msgid "Open"
msgstr "Åben"

#: src/components/AskForPushNotification.js:22
#: src/components/AskForPushNotification.js:29
msgid "Do you want to enable push notifications for this wallet?"
msgstr ""

#: src/components/AskForPushNotification.js:23
#: src/components/AskForPushNotification.js:30
msgid "You can always change this later in the settings menu"
msgstr ""

#: src/components/AskForPushNotification.js:24
#: src/components/AskForPushNotification.js:31
msgid "Yes, enable"
msgstr ""

#: src/components/AskForPushNotificationRefresh.js:28
#: src/components/AskForPushNotificationRefresh.js:35
msgid "Refresh your push notification registration"
msgstr ""

#: src/components/AskForPushNotificationRefresh.js:29
#: src/components/AskForPushNotificationRefresh.js:36
msgid ""
"In order to keep receiving push notifications, you need to refresh your "
"registration. Do you want to do it now?"
msgstr ""

#: src/components/AskForPushNotificationRefresh.js:30
#: src/components/AskForPushNotificationRefresh.js:37
msgid "Refresh"
msgstr ""

Expand Down Expand Up @@ -1090,15 +1097,15 @@ msgstr "Ingen internetforbindelse"
msgid "Public Explorer"
msgstr "Public Explorer"

#: src/components/PushTxDetailsModal.js:69 src/components/TxDetailsModal.js:103
#: src/components/PushTxDetailsModal.js:76 src/components/TxDetailsModal.js:101
msgid "Date & Time"
msgstr "Dato & Tid"

#: src/components/PushTxDetailsModal.js:70
#: src/components/PushTxDetailsModal.js:77
msgid "ID"
msgstr "ID"

#: src/components/PushTxDetailsModal.js:94
#: src/components/PushTxDetailsModal.js:101
msgid "New Transaction"
msgstr ""

Expand All @@ -1119,16 +1126,16 @@ msgstr "Del"
msgid "Propagating transaction to the network."
msgstr ""

#: src/components/ShowPushNotificationTxDetails.js:8
#: src/components/ShowPushNotificationTxDetails.js:15
msgid "Transation not found"
msgstr ""

#: src/components/ShowPushNotificationTxDetails.js:9
#: src/components/ShowPushNotificationTxDetails.js:16
msgid ""
"The transaction has not arrived yet in your wallet. Do you want to retry?"
msgstr ""

#: src/components/ShowPushNotificationTxDetails.js:10
#: src/components/ShowPushNotificationTxDetails.js:17
msgid "Retry"
msgstr ""

Expand Down Expand Up @@ -1212,5 +1219,16 @@ msgstr ""
msgid "Custom network"
msgstr ""

#~ msgid "I understand the risks of using a mobile wallet"
#~ msgstr "Jeg forstår risikoen ved at bruge en mobil wallet"
#: src/components/NanoContract/NoNanoContracts.js:16
msgid "No Nano Contracts"
msgstr ""

#: src/components/NanoContract/NoNanoContracts.js:18
msgid ""
"You can keep track of your registered Nano Contracts here once you have "
"registered them."
msgstr ""

#: src/components/NanoContract/RegisterNewNanoContractButton.js:22
msgid "Register new"
msgstr ""
61 changes: 35 additions & 26 deletions locale/pt-br/texts.po
Original file line number Diff line number Diff line change
Expand Up @@ -344,14 +344,21 @@ msgstr "O símbolo é a versão reduzida do nome do seu token"
msgid "E.g. HTR"
msgstr "Por exemplo, HTR"

#: src/screens/Dashboard.js:67 src/screens/RegisterTokenManual.js:147
#. Only show the toggle button when Nano Contract is enabled to the wallet
#: src/screens/Dashboard.js:130 src/screens/Dashboard.js:187
msgid "Tokens"
msgstr "Tokens"

#. Only show the toggle button when Nano Contract is enabled to the wallet
#: src/components/NanoContract/NanoContractsList.js:71
#: src/screens/Dashboard.js:131
msgid "Nano Contracts"
msgstr "Nano Contracts"

#: src/screens/Dashboard.js:178 src/screens/RegisterTokenManual.js:147
msgid "Register token"
msgstr "Registrar um token"

#: src/screens/Dashboard.js:74
msgid "TOKENS"
msgstr "TOKENS"

#: src/screens/InitWallet.js:61
msgid "Welcome to Hathor Wallet!"
msgstr "Bem vindo à Hathor Wallet!"
Expand Down Expand Up @@ -1014,31 +1021,31 @@ msgstr "Transação"
msgid "Open"
msgstr "Abrir"

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

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

#: src/components/AskForPushNotification.js:24
#: src/components/AskForPushNotification.js:31
msgid "Yes, enable"
msgstr "Sim, habilitar"

#: src/components/AskForPushNotificationRefresh.js:28
#: src/components/AskForPushNotificationRefresh.js:35
msgid "Refresh your push notification registration"
msgstr "Atualize sua configuração de notificação"

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

#: src/components/AskForPushNotificationRefresh.js:30
#: src/components/AskForPushNotificationRefresh.js:37
msgid "Refresh"
msgstr "Atualizar"

Expand Down Expand Up @@ -1120,15 +1127,15 @@ msgstr "Sem conexão com a internet"
msgid "Public Explorer"
msgstr "Explorer Público"

#: src/components/PushTxDetailsModal.js:69 src/components/TxDetailsModal.js:103
#: src/components/PushTxDetailsModal.js:76 src/components/TxDetailsModal.js:101
msgid "Date & Time"
msgstr "Data & Hora"

#: src/components/PushTxDetailsModal.js:70
#: src/components/PushTxDetailsModal.js:77
msgid "ID"
msgstr "ID"

#: src/components/PushTxDetailsModal.js:94
#: src/components/PushTxDetailsModal.js:101
msgid "New Transaction"
msgstr "Transação"

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

#: src/components/ShowPushNotificationTxDetails.js:8
#: src/components/ShowPushNotificationTxDetails.js:15
msgid "Transation not found"
msgstr "Transação não encontrada"

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

#: src/components/ShowPushNotificationTxDetails.js:10
#: src/components/ShowPushNotificationTxDetails.js:17
msgid "Retry"
msgstr "Tentar novamente"

Expand Down Expand Up @@ -1248,14 +1255,16 @@ msgstr ""
msgid "Custom network"
msgstr "Rede personalizada"

#~ msgid "There has been an error upgrading your wallet."
#~ msgstr "Ocorreu um erro ao atualizar sua wallet."

#~ msgid "Please reset it and restore it with your seed."
#~ msgstr "Por favor resete sua wallet e restaure utilizando sua seed."
#: src/components/NanoContract/NoNanoContracts.js:16
msgid "No Nano Contracts"
msgstr "Nenhum Nano Contract"

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

#~ msgid "I understand the risks of using a mobile wallet"
#~ msgstr "Eu entendo os riscos de usar uma wallet de celular"
#: src/components/NanoContract/RegisterNewNanoContractButton.js:22
msgid "Register new"
msgstr "Registrar Nano Contract"
56 changes: 37 additions & 19 deletions locale/ru-ru/texts.po
Original file line number Diff line number Diff line change
Expand Up @@ -336,14 +336,21 @@ msgstr "Символ является сокращенной версией им
msgid "E.g. HTR"
msgstr "Например, HTR"

#: src/screens/Dashboard.js:67 src/screens/RegisterTokenManual.js:147
#. Only show the toggle button when Nano Contract is enabled to the wallet
#: src/screens/Dashboard.js:130 src/screens/Dashboard.js:187
msgid "Tokens"
msgstr "ТокенЫ"

#. Only show the toggle button when Nano Contract is enabled to the wallet
#: src/components/NanoContract/NanoContractsList.js:71
#: src/screens/Dashboard.js:131
msgid "Nano Contracts"
msgstr ""

#: src/screens/Dashboard.js:178 src/screens/RegisterTokenManual.js:147
msgid "Register token"
msgstr "Зарегистрировать токен"

#: src/screens/Dashboard.js:74
msgid "TOKENS"
msgstr "ТОКЕНЫ"

#: src/screens/InitWallet.js:61
msgid "Welcome to Hathor Wallet!"
msgstr "Добро пожаловать в Hathor Wallet!"
Expand Down Expand Up @@ -991,29 +998,29 @@ msgstr ""
msgid "Open"
msgstr "Открыть"

#: src/components/AskForPushNotification.js:22
#: src/components/AskForPushNotification.js:29
msgid "Do you want to enable push notifications for this wallet?"
msgstr ""

#: src/components/AskForPushNotification.js:23
#: src/components/AskForPushNotification.js:30
msgid "You can always change this later in the settings menu"
msgstr ""

#: src/components/AskForPushNotification.js:24
#: src/components/AskForPushNotification.js:31
msgid "Yes, enable"
msgstr ""

#: src/components/AskForPushNotificationRefresh.js:28
#: src/components/AskForPushNotificationRefresh.js:35
msgid "Refresh your push notification registration"
msgstr ""

#: src/components/AskForPushNotificationRefresh.js:29
#: src/components/AskForPushNotificationRefresh.js:36
msgid ""
"In order to keep receiving push notifications, you need to refresh your "
"registration. Do you want to do it now?"
msgstr ""

#: src/components/AskForPushNotificationRefresh.js:30
#: src/components/AskForPushNotificationRefresh.js:37
msgid "Refresh"
msgstr ""

Expand Down Expand Up @@ -1080,15 +1087,15 @@ msgstr "Нет соединения с интернетом"
msgid "Public Explorer"
msgstr "Public Explorer"

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

#: src/components/PushTxDetailsModal.js:70
#: src/components/PushTxDetailsModal.js:77
msgid "ID"
msgstr "ID"

#: src/components/PushTxDetailsModal.js:94
#: src/components/PushTxDetailsModal.js:101
msgid "New Transaction"
msgstr ""

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

#: src/components/ShowPushNotificationTxDetails.js:8
#: src/components/ShowPushNotificationTxDetails.js:15
msgid "Transation not found"
msgstr ""

#: src/components/ShowPushNotificationTxDetails.js:9
#: src/components/ShowPushNotificationTxDetails.js:16
msgid ""
"The transaction has not arrived yet in your wallet. Do you want to retry?"
msgstr ""

#: src/components/ShowPushNotificationTxDetails.js:10
#: src/components/ShowPushNotificationTxDetails.js:17
msgid "Retry"
msgstr ""

Expand Down Expand Up @@ -1201,5 +1208,16 @@ msgstr ""
msgid "Custom network"
msgstr ""

#~ msgid "I understand the risks of using a mobile wallet"
#~ msgstr "Я осознаю риски использования мобильного кошелька"
#: src/components/NanoContract/NoNanoContracts.js:16
msgid "No Nano Contracts"
msgstr ""

#: src/components/NanoContract/NoNanoContracts.js:18
msgid ""
"You can keep track of your registered Nano Contracts here once you have "
"registered them."
msgstr ""

#: src/components/NanoContract/RegisterNewNanoContractButton.js:22
msgid "Register new"
msgstr ""
Loading

0 comments on commit a59de91

Please sign in to comment.