[#5979]: Add ENS names to profile screen

Signed-off-by: Aleksandr Pantiukhov <alwxndr@gmail.com>
This commit is contained in:
Aleksandr Pantiukhov 2018-10-01 11:26:47 +03:00
parent e461e4d2fe
commit 1b6fa1d980
No known key found for this signature in database
GPG Key ID: 153E4F21734042F5
4 changed files with 11 additions and 0 deletions

View File

@ -935,3 +935,8 @@
:group-chats.callback/extract-signature-success
(fn [cofx [_ group-update sender-signature]]
(group-chats/handle-membership-update cofx group-update sender-signature)))
(handlers/register-handler-fx
:profile.ui/ens-names-button-pressed
(fn [cofx]
(browser/open-url cofx "names.statusnet.eth")))

View File

@ -1,5 +1,7 @@
(ns status-im.ui.screens.profile.events
(:require [re-frame.core :as re-frame]
[status-im.browser.core :as browser]
[status-im.ui.screens.profile.models :as profile.models]
[status-im.ui.screens.profile.navigation]
[status-im.ui.components.list-selection :as list-selection]
[status-im.ui.screens.profile.models :as profile.models]

View File

@ -99,6 +99,9 @@
(let [show-backup-seed? (and (not seed-backed-up?) (not (string/blank? mnemonic)))]
[react/view
[profile.components/settings-title (i18n/label :t/settings)]
[profile.components/settings-item {:label-kw :t/ens-names
:action-fn #(re-frame/dispatch [:profile.ui/ens-names-button-pressed])
:accessibility-label :ens-names-button}]
[profile.components/settings-item {:label-kw :t/main-currency
:value (:code currency)
:action-fn #(re-frame/dispatch [:navigate-to :currency-settings])

View File

@ -309,6 +309,7 @@
"ok-got-it": "Ok, got it",
"ok": "OK",
"main-currency": "Main currency",
"ens-names": "ENS names",
"clear-history-title": "Clear history?",
"image-source-make-photo": "Capture",
"chat": "Chat",