0
Fork 0
mirror of https://github.com/penpot/penpot.git synced 2025-01-21 06:02:32 -05:00

Separate errors

This commit is contained in:
Florian Schroedl 2024-06-28 14:17:42 +02:00
parent 2fa152d364
commit 48a7c52664

View file

@ -254,9 +254,12 @@ Token names should only contain letters and digits separated by . characters.")}
:auto-focus true
:on-blur on-update-name
:on-change on-update-name}}]
(when @name-errors
[:p {:class (stl/css :error)}
(me/humanize @name-errors)])]
(for [error (->> (:errors @name-errors)
(map #(-> (assoc @name-errors :errors [%])
(me/humanize))))]
[:p {:key error
:class (stl/css :error)}
error])]
[:& tokens.common/labeled-input {:label "Value"
:input-props {:default-value @value-ref
:on-blur on-update-value