fixed warnings.

This commit is contained in:
2022-07-26 05:56:41 -07:00
parent f6f73a6110
commit 96c80853ef
133 changed files with 670 additions and 1640 deletions

View File

@@ -109,7 +109,7 @@
(re-frame/reg-event-db
::completed
[(re-frame/path [::status]) ]
(fn [db [_ single which]]
(fn [db [_ single _]]
(assoc db single {:state nil
:error nil})))
@@ -135,21 +135,19 @@
info-states
(->> states (filter #(:info %)))]
[:<>
(if (seq error-states)
(when (seq error-states)
[:div.notification.is-danger.is-light
(for [state states
state (:error state)]
(do
^{:key (:message state)}
[:p (or (:message state)
(:error state)
"An unexpected error occured.")]))])
(if (seq info-states)
^{:key (:message state)}
[:p (or (:message state)
(:error state)
"An unexpected error occured.")])])
(when (seq info-states)
[:div.notification.is-info.is-light
(for [state states]
(do
^{:key (:info state)}
[:p (:info state)]))])]))
^{:key (:info state)}
[:p (:info state)])])]))
(defn big-loader [status]
(when (= :loading (:state status))