0
Fork 0
mirror of https://github.com/penpot/penpot.git synced 2025-01-10 08:50:57 -05:00

🐛 Fix error messages

This commit is contained in:
Andrés Moya 2020-06-03 14:29:41 +02:00
parent bd2ee2fd11
commit 1ecb7c9178
2 changed files with 6 additions and 4 deletions

View file

@ -47,9 +47,10 @@
ptk/WatchEvent
(watch [_ state stream]
(->> (rx/of #(dissoc % :message))
(rx/delay +animation-timeout+)))))
(let [stoper (rx/filter (ptk/type? ::show) stream)]
(->> (rx/of #(dissoc % :message))
(rx/delay +animation-timeout+)
(rx/take-until stoper))))))
(defn error
([content] (error content {}))

View file

@ -25,7 +25,8 @@
:warning i/msg-warning
:error i/msg-error
:success i/msg-success
:info i/msg-info))
:info i/msg-info
i/msg-error))
(mf/defc notification-item
[{:keys [type status on-close quick? content] :as props}]