♻️(frontend) prioritize full name display before email
Why? user friendly, and more human-readable identifier. Should be enhance later on, to display both info together.
This commit is contained in:
committed by
aleb_the_flash
parent
fba9910705
commit
f433f59d3f
@@ -18,7 +18,7 @@ export const SettingsDialog = (props: SettingsDialogProps) => {
|
|||||||
<P>
|
<P>
|
||||||
<Trans
|
<Trans
|
||||||
i18nKey="settings:account.currentlyLoggedAs"
|
i18nKey="settings:account.currentlyLoggedAs"
|
||||||
values={{ user: user?.email }}
|
values={{ user: user?.full_name || user?.email }}
|
||||||
components={[<Badge />]}
|
components={[<Badge />]}
|
||||||
/>
|
/>
|
||||||
</P>
|
</P>
|
||||||
|
|||||||
@@ -48,7 +48,7 @@ export const AccountTab = ({ id, onOpenChange }: AccountTabProps) => {
|
|||||||
<P>
|
<P>
|
||||||
<Trans
|
<Trans
|
||||||
i18nKey="settings:account.currentlyLoggedAs"
|
i18nKey="settings:account.currentlyLoggedAs"
|
||||||
values={{ user: user?.email }}
|
values={{ user: user?.full_name || user?.email }}
|
||||||
components={[<Badge />]}
|
components={[<Badge />]}
|
||||||
/>
|
/>
|
||||||
</P>
|
</P>
|
||||||
|
|||||||
@@ -76,7 +76,7 @@ export const Header = () => {
|
|||||||
tooltip={t('loggedInUserTooltip')}
|
tooltip={t('loggedInUserTooltip')}
|
||||||
tooltipType="delayed"
|
tooltipType="delayed"
|
||||||
>
|
>
|
||||||
{user.email}
|
{user?.full_name || user?.email}
|
||||||
</Button>
|
</Button>
|
||||||
<MenuList
|
<MenuList
|
||||||
items={[{ value: 'logout', label: t('logout') }]}
|
items={[{ value: 'logout', label: t('logout') }]}
|
||||||
|
|||||||
Reference in New Issue
Block a user