♻️ Migrate template-item to modern component syntax (#9441)

Co-authored-by: Andrey Antukh <niwi@niwi.nz>
This commit is contained in:
Dexterity 2026-06-10 04:54:46 -04:00 committed by GitHub
parent ebb5738c7b
commit 890ce378a7
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -19,7 +19,7 @@
[beicon.v2.core :as rx]
[rumext.v2 :as mf]))
(mf/defc template-item
(mf/defc template-item*
[{:keys [name path image project-id]}]
(let [downloading? (mf/use-state false)
link (dm/str (assoc cf/public-uri :path path))
@ -78,12 +78,12 @@
[:p (tr "onboarding.templates.subtitle")]
[:div.templates
[:& template-item
[:> template-item*
{:path "/github/penpot-files/Penpot-Design-system.penpot"
:image "https://penpot.app/images/libraries/cover-ds-penpot.jpg"
:name "Penpot Design System"
:project-id project-id}]
[:& template-item
[:> template-item*
{:path "/github/penpot-files/Material-Design-Kit.penpot"
:image "https://penpot.app/images/libraries/cover-material.jpg"
:name "Material Design Kit"