mirror of
https://github.com/penpot/penpot.git
synced 2025-06-14 05:41:40 +02:00
✨ Improve error checking and notification
This commit is contained in:
parent
bbf3bc7909
commit
e3e8180b7a
5 changed files with 124 additions and 83 deletions
|
@ -19,11 +19,11 @@
|
|||
(let [opt-pick-one #(if multi % (first %))
|
||||
|
||||
on-files-selected (fn [event] (st/emit!
|
||||
(-> (dom/get-target event)
|
||||
(dom/get-files)
|
||||
(array-seq)
|
||||
(opt-pick-one)
|
||||
(on-selected))))]
|
||||
(some-> (dom/get-target event)
|
||||
(dom/get-files)
|
||||
(array-seq)
|
||||
(opt-pick-one)
|
||||
(on-selected))))]
|
||||
[:*
|
||||
(when label-text
|
||||
[:label {:for input-id :class-name label-class} label-text])
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue