mirror of
https://github.com/penpot/penpot.git
synced 2026-04-25 19:28:12 +00:00
♻️ Convert active-sessions to modern * component format
Convert active-sessions to active-sessions* (zero-prop component). Update call site in right_header.cljs to use [:> ...] and update the :refer import accordingly.
This commit is contained in:
parent
bf7c12ae75
commit
fbee875d75
@ -29,7 +29,7 @@
|
||||
:style {:background-color color}
|
||||
:src (cfg/resolve-profile-photo-url profile)}]]))
|
||||
|
||||
(mf/defc active-sessions
|
||||
(mf/defc active-sessions*
|
||||
{::mf/memo true}
|
||||
[]
|
||||
(let [profiles (mf/deref refs/profiles)
|
||||
|
||||
@ -25,7 +25,7 @@
|
||||
[app.main.ui.exports.assets :refer [progress-widget]]
|
||||
[app.main.ui.formats :as fmt]
|
||||
[app.main.ui.icons :as deprecated-icon]
|
||||
[app.main.ui.workspace.presence :refer [active-sessions]]
|
||||
[app.main.ui.workspace.presence :refer [active-sessions*]]
|
||||
[app.util.dom :as dom]
|
||||
[app.util.i18n :as i18n :refer [tr]]
|
||||
[okulary.core :as l]
|
||||
@ -198,7 +198,7 @@
|
||||
|
||||
[:div {:class (stl/css :workspace-header-right)}
|
||||
[:div {:class (stl/css :users-section)}
|
||||
[:& active-sessions]]
|
||||
[:> active-sessions*]]
|
||||
|
||||
[:& progress-widget]
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user