[FIX #2423] ui: fix typo in render-public-chats-item

This commit is contained in:
Vitaliy Vlasov 2017-12-04 16:14:45 +02:00 committed by Goran Jović
parent feed287457
commit 5ef8ea4c0c
1 changed files with 15 additions and 16 deletions

View File

@ -127,22 +127,21 @@
(re-frame/dispatch [:create-new-public-chat topic]))
(defn render-public-chats-item [{:keys [name color topic] :as item}]
[react/touchable-highlight {:on-press #(navigate-to-public-chat topic)}]
[react/view styles/public-chats-item-container
[react/view styles/public-chats-icon-container
[react/view (styles/public-chats-icon color)
[react/text {:style styles/public-chats-icon-text}
(-> name first str)]]]
[react/view styles/public-chats-item-inner
[react/view styles/public-chats-item-name-container
[vector-icons/icon :icons/public-chat]
[react/text {:font :medium
:style styles/public-chats-item-name-text}
name]]
[react/view {}
[react/text {:style {:color :lightgray}}
(str "#" topic)]]]])
[react/touchable-highlight {:on-press #(navigate-to-public-chat topic)}
[react/view styles/public-chats-item-container
[react/view styles/public-chats-icon-container
[react/view (styles/public-chats-icon color)
[react/text {:style styles/public-chats-icon-text}
(-> name first str)]]]
[react/view styles/public-chats-item-inner
[react/view styles/public-chats-item-name-container
[vector-icons/icon :icons/public-chat]
[react/text {:font :medium
:style styles/public-chats-item-name-text}
name]]
[react/view {}
[react/text {:style {:color :lightgray}}
(str "#" topic)]]]]])
(defn public-chats-teaser []
[react/view styles/public-chats-container