mirror of
https://github.com/penpot/penpot.git
synced 2025-06-01 04:41:40 +02:00
⚡ Remove props wrapping on workspace comment react components
This commit is contained in:
parent
4106e8da56
commit
43cd4656b4
1 changed files with 2 additions and 0 deletions
|
@ -27,6 +27,7 @@
|
||||||
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
||||||
|
|
||||||
(mf/defc sidebar-options
|
(mf/defc sidebar-options
|
||||||
|
{::mf/props :obj}
|
||||||
[{:keys [from-viewer]}]
|
[{:keys [from-viewer]}]
|
||||||
(let [{cmode :mode cshow :show} (mf/deref refs/comments-local)
|
(let [{cmode :mode cshow :show} (mf/deref refs/comments-local)
|
||||||
update-mode
|
update-mode
|
||||||
|
@ -67,6 +68,7 @@
|
||||||
[:span {:class (stl/css :icon)} i/tick-refactor]]]))
|
[:span {:class (stl/css :icon)} i/tick-refactor]]]))
|
||||||
|
|
||||||
(mf/defc comments-sidebar
|
(mf/defc comments-sidebar
|
||||||
|
{::mf/props :obj}
|
||||||
[{:keys [users threads page-id from-viewer]}]
|
[{:keys [users threads page-id from-viewer]}]
|
||||||
(let [threads-map (mf/deref refs/threads-ref)
|
(let [threads-map (mf/deref refs/threads-ref)
|
||||||
profile (mf/deref refs/profile)
|
profile (mf/deref refs/profile)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue