[#5979]: Add ENS names to profile screen
Signed-off-by: Aleksandr Pantiukhov <alwxndr@gmail.com>
This commit is contained in:
parent
e461e4d2fe
commit
1b6fa1d980
|
@ -935,3 +935,8 @@
|
||||||
:group-chats.callback/extract-signature-success
|
:group-chats.callback/extract-signature-success
|
||||||
(fn [cofx [_ group-update sender-signature]]
|
(fn [cofx [_ group-update sender-signature]]
|
||||||
(group-chats/handle-membership-update 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")))
|
||||||
|
|
|
@ -1,5 +1,7 @@
|
||||||
(ns status-im.ui.screens.profile.events
|
(ns status-im.ui.screens.profile.events
|
||||||
(:require [re-frame.core :as re-frame]
|
(: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.screens.profile.navigation]
|
||||||
[status-im.ui.components.list-selection :as list-selection]
|
[status-im.ui.components.list-selection :as list-selection]
|
||||||
[status-im.ui.screens.profile.models :as profile.models]
|
[status-im.ui.screens.profile.models :as profile.models]
|
||||||
|
|
|
@ -99,6 +99,9 @@
|
||||||
(let [show-backup-seed? (and (not seed-backed-up?) (not (string/blank? mnemonic)))]
|
(let [show-backup-seed? (and (not seed-backed-up?) (not (string/blank? mnemonic)))]
|
||||||
[react/view
|
[react/view
|
||||||
[profile.components/settings-title (i18n/label :t/settings)]
|
[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
|
[profile.components/settings-item {:label-kw :t/main-currency
|
||||||
:value (:code currency)
|
:value (:code currency)
|
||||||
:action-fn #(re-frame/dispatch [:navigate-to :currency-settings])
|
:action-fn #(re-frame/dispatch [:navigate-to :currency-settings])
|
||||||
|
|
|
@ -309,6 +309,7 @@
|
||||||
"ok-got-it": "Ok, got it",
|
"ok-got-it": "Ok, got it",
|
||||||
"ok": "OK",
|
"ok": "OK",
|
||||||
"main-currency": "Main currency",
|
"main-currency": "Main currency",
|
||||||
|
"ens-names": "ENS names",
|
||||||
"clear-history-title": "Clear history?",
|
"clear-history-title": "Clear history?",
|
||||||
"image-source-make-photo": "Capture",
|
"image-source-make-photo": "Capture",
|
||||||
"chat": "Chat",
|
"chat": "Chat",
|
||||||
|
|
Loading…
Reference in New Issue