mirror of
https://github.com/penpot/penpot.git
synced 2026-06-09 17:02:05 +00:00
♻️ Migrate plugin-entry to modern component syntax (#9462)
Co-authored-by: Andrey Antukh <niwi@niwi.nz>
This commit is contained in:
parent
4b2ddfd7b2
commit
67f6786809
@ -55,7 +55,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
|
||||
@ -232,12 +232,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