Use simple-toolbar in console chat
Signed-off-by: Andrey Shovkoplyas <motor4ik@gmail.com>
This commit is contained in:
parent
924d16dc64
commit
d0c471eef2
|
@ -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))
|
||||||
|
|
Loading…
Reference in New Issue