0
Fork 0
mirror of https://github.com/penpot/penpot.git synced 2025-01-20 13:42:59 -05:00

♻ Unique naming

This commit is contained in:
Florian Schroedl 2024-12-10 14:50:34 +01:00
parent d546bc04f8
commit 85ed6f1409

View file

@ -91,7 +91,7 @@
(mf/use-fn
(mf/deps tree-path)
#(on-edit tree-path))
on-edit-submit
on-edit-submit'
(mf/use-fn
(mf/deps tree-path on-edit-submit)
#(on-edit-submit tree-path %))]
@ -113,7 +113,7 @@
{:default-value label
:on-cancel on-edit-reset
:on-create on-edit-reset
:on-submit on-edit-submit}]
:on-submit on-edit-submit'}]
[:div {:class (stl/css :set-name)
:on-double-click on-double-click}
label])]))
@ -148,7 +148,7 @@
(fn [event]
(dom/stop-propagation event)
(on-toggle set-name)))
on-edit-submit (mf/use-fn
on-edit-submit' (mf/use-fn
(mf/deps set on-edit-submit)
#(on-edit-submit set-name (ctob/update-name set %)))]
[:div {:role "button"
@ -168,7 +168,7 @@
{:default-value label
:on-cancel on-edit-reset
:on-create on-edit-reset
:on-submit on-edit-submit}]
:on-submit on-edit-submit'}]
[:*
[:div {:class (stl/css :set-name)
:on-double-click on-double-click}