[front/feat] show loading phrase

This commit is contained in:
SouthFox 2023-08-25 23:34:14 +08:00
parent 10799c3de1
commit 8e302634ae

View file

@ -20,9 +20,11 @@
(defn item-page []
(let [loading @(subscribe [:loading])
post @(subscribe [:post])]
[:div
{:dangerouslySetInnerHTML
{:__html post}}]))
(if (:post loading)
[:p "Loading..."]
[:div
{:dangerouslySetInnerHTML
{:__html post}}])))
(defn nav [{:keys [current-route]}]
(let [active #(when (= % (-> current-route :data :name)) "> ")]