mirror of
https://github.com/penpot/penpot.git
synced 2026-06-09 17:02:05 +00:00
♻️ Migrate inspect annotation to modern component syntax (#9402)
Co-authored-by: Andrey Antukh <niwi@niwi.nz>
This commit is contained in:
parent
a9c0b5394c
commit
4b2ddfd7b2
@ -12,8 +12,8 @@
|
||||
[app.util.i18n :as i18n :refer [tr]]
|
||||
[rumext.v2 :as mf]))
|
||||
|
||||
(mf/defc annotation
|
||||
[{:keys [content] :as props}]
|
||||
(mf/defc annotation*
|
||||
[{:keys [content]}]
|
||||
[:div {:class (stl/css :attributes-block)}
|
||||
[:> title-bar* {:collapsable false
|
||||
:title (tr "workspace.options.component.annotation")
|
||||
|
||||
@ -11,7 +11,7 @@
|
||||
[app.common.types.component :as ctc]
|
||||
[app.common.types.components-list :as ctkl]
|
||||
[app.main.ui.hooks :as hooks]
|
||||
[app.main.ui.inspect.annotation :refer [annotation]]
|
||||
[app.main.ui.inspect.annotation :refer [annotation*]]
|
||||
[app.main.ui.inspect.attributes.blur :refer [blur-panel]]
|
||||
[app.main.ui.inspect.attributes.fill :refer [fill-panel*]]
|
||||
[app.main.ui.inspect.attributes.geometry :refer [geometry-panel]]
|
||||
@ -81,7 +81,7 @@
|
||||
:libraries libraries
|
||||
:file-id file-id}])
|
||||
(when annotation-content
|
||||
[:& annotation {:content annotation-content}])
|
||||
[:> annotation* {:content annotation-content}])
|
||||
[:& exports
|
||||
{:shapes shapes
|
||||
:type type
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user