mirror of
https://github.com/penpot/penpot.git
synced 2025-02-03 21:09:00 -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
|
ptk/WatchEvent
|
||||||
(watch [_ state stream]
|
(watch [_ state stream]
|
||||||
|
(let [stoper (rx/filter (ptk/type? ::show) stream)]
|
||||||
(->> (rx/of #(dissoc % :message))
|
(->> (rx/of #(dissoc % :message))
|
||||||
(rx/delay +animation-timeout+)))))
|
(rx/delay +animation-timeout+)
|
||||||
|
(rx/take-until stoper))))))
|
||||||
|
|
||||||
(defn error
|
(defn error
|
||||||
([content] (error content {}))
|
([content] (error content {}))
|
||||||
|
|
|
@ -25,7 +25,8 @@
|
||||||
:warning i/msg-warning
|
:warning i/msg-warning
|
||||||
:error i/msg-error
|
:error i/msg-error
|
||||||
:success i/msg-success
|
:success i/msg-success
|
||||||
:info i/msg-info))
|
:info i/msg-info
|
||||||
|
i/msg-error))
|
||||||
|
|
||||||
(mf/defc notification-item
|
(mf/defc notification-item
|
||||||
[{:keys [type status on-close quick? content] :as props}]
|
[{:keys [type status on-close quick? content] :as props}]
|
||||||
|
|
Loading…
Add table
Reference in a new issue