refactoring.

This commit is contained in:
BC
2019-02-18 15:35:46 -08:00
parent 9734b3a490
commit f1a6ada3b8
3 changed files with 33 additions and 73 deletions

View File

@@ -90,7 +90,7 @@
[:div.sub-main {} children ]]
[:div])])))
(defn side-bar-layout [{:keys [side-bar main ap bottom right-side-bar right-side-bar-visible?]}]
(defn side-bar-layout [{:keys [side-bar main ap bottom right-side-bar]}]
(let [ap @(re-frame/subscribe [::subs/active-page])
client @(re-frame/subscribe [::subs/client])]
[:div
@@ -103,7 +103,9 @@
[:div {:class "column messages hero " :style { :overflow "auto" }, :id "message-feed"}
^{:key (str "active-page-" (:name client))}
[:div.inbox-messages main]]
[appearing-side-bar {:visible? right-side-bar-visible?} right-side-bar]]
(when right-side-bar
right-side-bar)
]
#_[footer]
bottom
[:div#dz-hidden]]))