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 headerTools = () => {
|
||||||
|
const adminClient = useAdminClient();
|
||||||
|
const picture = adminClient.keycloak.tokenParsed?.picture;
|
||||||
return (
|
return (
|
||||||
<PageHeaderTools>
|
<PageHeaderTools>
|
||||||
<PageHeaderToolsGroup
|
<PageHeaderToolsGroup
|
||||||
|
@ -120,7 +122,7 @@ export const Header = () => {
|
||||||
</PageHeaderToolsItem>
|
</PageHeaderToolsItem>
|
||||||
</PageHeaderToolsGroup>
|
</PageHeaderToolsGroup>
|
||||||
<Avatar
|
<Avatar
|
||||||
src={environment.resourceUrl + "/img_avatar.svg"}
|
src={picture || environment.resourceUrl + "/img_avatar.svg"}
|
||||||
alt="Avatar image"
|
alt="Avatar image"
|
||||||
/>
|
/>
|
||||||
</PageHeaderTools>
|
</PageHeaderTools>
|
||||||
|
|
Loading…
Reference in a new issue