0
Fork 0
mirror of https://github.com/penpot/penpot.git synced 2025-01-10 00:40:30 -05:00

🐛 Fix react warning on incorrect style on workspace presence component

This commit is contained in:
Andrey Antukh 2023-11-21 17:28:47 +01:00
parent a73964ed8d
commit 2a1d8fd09d

View file

@ -21,8 +21,8 @@
[{:keys [session profile index] :as props}] [{:keys [session profile index] :as props}]
(let [profile (assoc profile :color (:color session))] (let [profile (assoc profile :color (:color session))]
[:li {:class (stl/css :session-icon) [:li {:class (stl/css :session-icon)
:style #js {"zIndex" (str (or (+ 1 (* -1 index)) 0)), :style {:z-index (str (or (+ 1 (* -1 index)) 0))
"background-color" (:color session)} :background-color (:color session)}
:title (:fullname profile)} :title (:fullname profile)}
[:img {:alt (:fullname profile) [:img {:alt (:fullname profile)
:style {:background-color (:color session)} :style {:background-color (:color session)}