Fix some UI warnings
This commit is contained in:
parent
abe6e97728
commit
b5f7a62b14
|
@ -255,13 +255,14 @@
|
||||||
[rn/view {:style {:flex-direction :row
|
[rn/view {:style {:flex-direction :row
|
||||||
:justify-content :center}}
|
:justify-content :center}}
|
||||||
[rn/view {:style (styles/home-tokens-icons (count tokens))}
|
[rn/view {:style (styles/home-tokens-icons (count tokens))}
|
||||||
(for [[{name :name
|
(doall
|
||||||
{source :source} :icon} _ i] tokens]
|
(for [[{name :name
|
||||||
^{:key name}
|
{source :source} :icon} _ i] tokens]
|
||||||
[rn/view {:style (styles/home-token-icon-style i)}
|
^{:key name}
|
||||||
[rn/image {:source (if (fn? source) (source) source)
|
[rn/view {:style (styles/home-token-icon-style i)}
|
||||||
:style {:width 20
|
[rn/image {:source (if (fn? source) (source) source)
|
||||||
:height 20}}]])]
|
:style {:width 20
|
||||||
|
:height 20}}]]))]
|
||||||
[quo/text {:align :center}
|
[quo/text {:align :center}
|
||||||
(i18n/label :t/invite-reward)]])]])))
|
(i18n/label :t/invite-reward)]])]])))
|
||||||
|
|
||||||
|
|
|
@ -46,7 +46,7 @@
|
||||||
[react/view styles/multiaccounts-container
|
[react/view styles/multiaccounts-container
|
||||||
[list/flat-list {:data (vals multiaccounts)
|
[list/flat-list {:data (vals multiaccounts)
|
||||||
:contentContainerStyle styles/multiaccounts-list-container
|
:contentContainerStyle styles/multiaccounts-list-container
|
||||||
:key-fn :address
|
:key-fn (comp str :address)
|
||||||
:render-fn multiaccount-view}]]
|
:render-fn multiaccount-view}]]
|
||||||
[toolbar/toolbar
|
[toolbar/toolbar
|
||||||
{:show-border? true
|
{:show-border? true
|
||||||
|
|
|
@ -195,16 +195,16 @@
|
||||||
:subtitle second-name})}
|
:subtitle second-name})}
|
||||||
|
|
||||||
[react/view {:padding-top 12}
|
[react/view {:padding-top 12}
|
||||||
(for [{:keys [label subtext accessibility-label icon action disabled?]} (actions contact)]
|
(for [{:keys [label subtext accessibility-label icon action disabled?]} (actions contact)
|
||||||
|
:when label]
|
||||||
^{:key label}
|
^{:key label}
|
||||||
(when label
|
[quo/list-item {:theme :accent
|
||||||
[quo/list-item {:theme :accent
|
:title label
|
||||||
:title label
|
:subtitle subtext
|
||||||
:subtitle subtext
|
:icon icon
|
||||||
:icon icon
|
:accessibility-label accessibility-label
|
||||||
:accessibility-label accessibility-label
|
:disabled disabled?
|
||||||
:disabled disabled?
|
:on-press action}])]
|
||||||
:on-press action}]))]
|
|
||||||
[react/view styles/contact-profile-details-container
|
[react/view styles/contact-profile-details-container
|
||||||
[profile-details contact]
|
[profile-details contact]
|
||||||
[chat-settings contact]]
|
[chat-settings contact]]
|
||||||
|
|
Loading…
Reference in New Issue