Use simple-toolbar in console chat

Signed-off-by: Andrey Shovkoplyas <motor4ik@gmail.com>
This commit is contained in:
Stepan Lusnikov 2018-04-18 12:30:32 +08:00 committed by Andrey Shovkoplyas
parent 924d16dc64
commit d0c471eef2
No known key found for this signature in database
GPG Key ID: EAAB7C8622D860A4
1 changed files with 6 additions and 5 deletions

View File

@ -53,14 +53,15 @@
(letsubs [{:keys [group-chat name chat-id contacts]} [:get-current-chat]] (letsubs [{:keys [group-chat name chat-id contacts]} [:get-current-chat]]
[react/view [react/view
[status-bar/status-bar] [status-bar/status-bar]
[toolbar/platform-agnostic-toolbar {} (if (= chat-id constants/console-chat-id)
toolbar/nav-back-count [toolbar/simple-toolbar name]
[toolbar-content/toolbar-content-view] [toolbar/platform-agnostic-toolbar {}
(when (not= chat-id constants/console-chat-id) toolbar/nav-back-count
[toolbar-content/toolbar-content-view]
[toolbar/actions [{:icon :icons/options [toolbar/actions [{:icon :icons/options
:icon-opts {:color :black :icon-opts {:color :black
:accessibility-label :chat-menu-button} :accessibility-label :chat-menu-button}
:handler #(on-options chat-id name group-chat public?)}]])] :handler #(on-options chat-id name group-chat public?)}]]])
(when-not (or public? group-chat) [add-contact-bar (first contacts)])])) (when-not (or public? group-chat) [add-contact-bar (first contacts)])]))
(defmulti message-row (fn [{{:keys [type]} :row}] type)) (defmulti message-row (fn [{{:keys [type]} :row}] type))