1
0
mirror of https://github.com/sasjs/server.git synced 2026-01-04 21:30:05 +00:00

fix(web): show display name instead of username

This commit is contained in:
Saad Jutt
2022-04-28 07:00:49 +05:00
parent 5da93f318a
commit e57443f1ed
4 changed files with 22 additions and 21 deletions

View File

@@ -12,7 +12,7 @@ import {
} from '@mui/material'
import OpenInNewIcon from '@mui/icons-material/OpenInNew'
import UserName from './userName'
import Username from './username'
import { AppContext } from '../context/appContext'
const NODE_ENV = process.env.NODE_ENV
@@ -113,8 +113,8 @@ const Header = (props: any) => {
justifyContent: 'flex-end'
}}
>
<UserName
userName={appContext.userName}
<Username
username={appContext.displayName || appContext.username}
onClickHandler={handleMenu}
/>
<Menu