[#9723] No 'Apply' button appears when updating "Wallet"-> "Account"-> "Account settings"

Signed-off-by: Andrey Shovkoplyas <motor4ik@gmail.com>
This commit is contained in:
Andrey Shovkoplyas 2019-12-27 13:13:22 +01:00
parent c66e848255
commit 5501d20450
No known key found for this signature in database
GPG Key ID: EAAB7C8622D860A4
1 changed files with 23 additions and 22 deletions

View File

@ -30,26 +30,27 @@
icon icon
[icons/icon icon] [icons/icon icon]
label label
[react/text {:style {:color colors/blue}} label])]])) [react/text {:style {:color colors/blue}}
(utils.label/stringify label)])]]))
(defn topbar [& [{:keys [title navigation accessories show-border? modal?]}]] (defn topbar [_]
(let [navigation (or navigation (default-navigation modal?)) (let [title-padding (reagent/atom 16)]
title-padding (reagent/atom 16)] (fn [& [{:keys [title navigation accessories show-border? modal?]}]]
(fn [_] (let [navigation (or navigation (default-navigation modal?))]
[react/view (cond-> {:height 56 :align-items :center :flex-direction :row} [react/view (cond-> {:height 56 :align-items :center :flex-direction :row}
show-border? show-border?
(assoc :border-bottom-width 1 :border-bottom-color colors/gray-lighter)) (assoc :border-bottom-width 1 :border-bottom-color colors/gray-lighter))
(when-not (= navigation :none) (when-not (= navigation :none)
[container {} title-padding [container {} title-padding
[button navigation true]]) [button navigation true]])
[react/view {:flex 1}] [react/view {:flex 1}]
(when accessories (when accessories
[container {:flex-direction :row :padding-right 6} title-padding [container {:flex-direction :row :padding-right 6} title-padding
(for [value accessories] (for [value accessories]
^{:key value} ^{:key value}
[button value false])]) [button value false])])
(when title (when title
[react/view {:position :absolute :left @title-padding :right @title-padding [react/view {:position :absolute :left @title-padding :right @title-padding
:top 0 :bottom 0 :align-items :center :justify-content :center} :top 0 :bottom 0 :align-items :center :justify-content :center}
[react/text {:style {:typography :title-bold :text-align :center} :number-of-lines 2} [react/text {:style {:typography :title-bold :text-align :center} :number-of-lines 2}
(utils.label/stringify title)]])]))) (utils.label/stringify title)]])]))))