Fix topbar in new contact
Fixes #11091 Fix more nav handlers keys Signed-off-by: Gheorghe Pinzaru <feross95@gmail.com>
This commit is contained in:
parent
cc0076048d
commit
1e7061acc2
|
@ -69,8 +69,8 @@
|
||||||
:right-accessories
|
:right-accessories
|
||||||
[{:icon :qr
|
[{:icon :qr
|
||||||
:accessibility-label :scan-contact-code-button
|
:accessibility-label :scan-contact-code-button
|
||||||
:handler #(re-frame/dispatch [::qr-scanner/scan-code
|
:on-press #(re-frame/dispatch [::qr-scanner/scan-code
|
||||||
{:title (i18n/label :t/new-contact)
|
{:title (i18n/label :t/new-chat)
|
||||||
:handler :contact/qr-code-scanned}])}]}]
|
:handler :contact/qr-code-scanned}])}]}]
|
||||||
[react/view {:flex-direction :row
|
[react/view {:flex-direction :row
|
||||||
:padding 16}
|
:padding 16}
|
||||||
|
@ -113,11 +113,12 @@
|
||||||
(views/letsubs [{:keys [state ens-name public-key error]} [:contacts/new-identity]]
|
(views/letsubs [{:keys [state ens-name public-key error]} [:contacts/new-identity]]
|
||||||
[react/view {:style {:flex 1}}
|
[react/view {:style {:flex 1}}
|
||||||
[topbar/topbar
|
[topbar/topbar
|
||||||
{:title :t/new-contact
|
{:title (i18n/label :t/new-contact)
|
||||||
:modal? true
|
:modal? true
|
||||||
:accessories [{:icon :qr
|
:right-accessories
|
||||||
|
[{:icon :qr
|
||||||
:accessibility-label :scan-contact-code-button
|
:accessibility-label :scan-contact-code-button
|
||||||
:handler #(re-frame/dispatch [::qr-scanner/scan-code
|
:on-press #(re-frame/dispatch [::qr-scanner/scan-code
|
||||||
{:title (i18n/label :t/new-contact)
|
{:title (i18n/label :t/new-contact)
|
||||||
:handler :contact/qr-code-scanned
|
:handler :contact/qr-code-scanned
|
||||||
:new-contact? true}])}]}]
|
:new-contact? true}])}]}]
|
||||||
|
|
|
@ -37,7 +37,7 @@
|
||||||
:navigation
|
:navigation
|
||||||
{:icon :main-icons/back
|
{:icon :main-icons/back
|
||||||
:accessibility-label :back-button
|
:accessibility-label :back-button
|
||||||
:handler #(re-frame/dispatch [:intro-wizard/navigate-back])}}]
|
:on-press #(re-frame/dispatch [:intro-wizard/navigate-back])}}]
|
||||||
[rn/view {:style {:flex 1
|
[rn/view {:style {:flex 1
|
||||||
:justify-content :space-between
|
:justify-content :space-between
|
||||||
:padding-vertical 16
|
:padding-vertical 16
|
||||||
|
|
|
@ -30,7 +30,7 @@
|
||||||
(when (= type :watch)
|
(when (= type :watch)
|
||||||
{:right-accessories
|
{:right-accessories
|
||||||
[{:icon :qr
|
[{:icon :qr
|
||||||
:handler #(re-frame/dispatch [:wallet.add-new/qr-scanner
|
:on-press #(re-frame/dispatch [:wallet.add-new/qr-scanner
|
||||||
{:handler :wallet.add-new/qr-scanner-result}])}]}))]))
|
{:handler :wallet.add-new/qr-scanner-result}])}]}))]))
|
||||||
|
|
||||||
(defn common-settings [account]
|
(defn common-settings [account]
|
||||||
|
|
Loading…
Reference in New Issue