♻️ Migrate inspect annotation to modern component syntax (#9402)

Co-authored-by: Andrey Antukh <niwi@niwi.nz>
This commit is contained in:
BitToby 2026-06-01 16:56:10 +07:00 committed by GitHub
parent a9c0b5394c
commit 4b2ddfd7b2
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 4 additions and 4 deletions

View File

@ -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")

View File

@ -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