0
Fork 0
mirror of https://github.com/penpot/penpot.git synced 2025-01-24 07:29:08 -05:00

🐛 Set proper user photo on workspace header.

This commit is contained in:
Andrey Antukh 2020-03-26 15:22:25 +01:00
parent cd2302c8d5
commit 4d9b05f83c

View file

@ -61,12 +61,16 @@
(mf/defc user-widget
[{:keys [user self?] :as props}]
[:li.tooltip.tooltip-bottom
{:alt (:fullname user)
:on-click (when self?
#(st/emit! (rt/navigate :settings/profile)))}
[:img {:style {:border-color (:color user)}
:src (if self? "/images/avatar.jpg" "/images/avatar-red.jpg")}]])
(let [photo (or (:photo-uri user)
(if self?
"/images/avatar.jpg"
"/images/avatar-red.jpg"))]
[:li.tooltip.tooltip-bottom
{:alt (:fullname user)
:on-click (when self?
#(st/emit! (rt/navigate :settings/profile)))}
[:img {:style {:border-color (:color user)}
:src photo}]]))
(mf/defc active-users
[props]