Use avatar picture when it exists (#3195)
This commit is contained in:
parent
e84ff41654
commit
e6fc51f435
1 changed files with 3 additions and 1 deletions
|
@ -89,6 +89,8 @@ export const Header = () => {
|
|||
];
|
||||
|
||||
const headerTools = () => {
|
||||
const adminClient = useAdminClient();
|
||||
const picture = adminClient.keycloak.tokenParsed?.picture;
|
||||
return (
|
||||
<PageHeaderTools>
|
||||
<PageHeaderToolsGroup
|
||||
|
@ -120,7 +122,7 @@ export const Header = () => {
|
|||
</PageHeaderToolsItem>
|
||||
</PageHeaderToolsGroup>
|
||||
<Avatar
|
||||
src={environment.resourceUrl + "/img_avatar.svg"}
|
||||
src={picture || environment.resourceUrl + "/img_avatar.svg"}
|
||||
alt="Avatar image"
|
||||
/>
|
||||
</PageHeaderTools>
|
||||
|
|
Loading…
Reference in a new issue