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:
parent
bd2ee2fd11
commit
1ecb7c9178
2 changed files with 6 additions and 4 deletions
|
@ -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 {}))
|
||||
|
|
|
@ -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}]
|
||||
|
|
Loading…
Reference in a new issue