mirror of
https://github.com/penpot/penpot.git
synced 2026-05-11 02:58:25 +00:00
♻️ Convert plugin-entry component to * suffix
Rename plugin-entry to plugin-entry* in plugins.cljs and update the internal call site in plugin-management-dialog from [:& ...] to [:> ...].
This commit is contained in:
parent
c6181ebd2b
commit
e261d9e8e8
@ -56,7 +56,7 @@
|
||||
"/" "")
|
||||
icon))
|
||||
|
||||
(mf/defc plugin-entry
|
||||
(mf/defc plugin-entry*
|
||||
[{:keys [index manifest user-can-edit on-open-plugin on-remove-plugin]}]
|
||||
|
||||
(let [{:keys [plugin-id host icon name description permissions]} manifest
|
||||
@ -233,12 +233,12 @@
|
||||
|
||||
[:div {:class (stl/css :plugins-list)}
|
||||
(for [[idx manifest] (d/enumerate plugins-state)]
|
||||
[:& plugin-entry {:key (dm/str "plugin-" idx)
|
||||
:index idx
|
||||
:manifest manifest
|
||||
:user-can-edit user-can-edit?
|
||||
:on-open-plugin on-open-plugin
|
||||
:on-remove-plugin on-remove-plugin}])]])]]]))
|
||||
[:> plugin-entry* {:key (dm/str "plugin-" idx)
|
||||
:index idx
|
||||
:manifest manifest
|
||||
:user-can-edit user-can-edit?
|
||||
:on-open-plugin on-open-plugin
|
||||
:on-remove-plugin on-remove-plugin}])]])]]]))
|
||||
|
||||
(mf/defc plugins-permission-list*
|
||||
{::mf/private true}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user