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:
parent
cd2302c8d5
commit
4d9b05f83c
1 changed files with 10 additions and 6 deletions
|
@ -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]
|
||||
|
|
Loading…
Add table
Reference in a new issue