mirror of
https://github.com/penpot/penpot.git
synced 2025-01-20 13:42:59 -05:00
♻ Unique naming
This commit is contained in:
parent
d546bc04f8
commit
85ed6f1409
1 changed files with 6 additions and 6 deletions
|
@ -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}
|
||||
|
|
Loading…
Add table
Reference in a new issue