♻️(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:
lebaudantoine
2024-11-15 23:54:14 +01:00
committed by aleb_the_flash
parent fba9910705
commit f433f59d3f
3 changed files with 3 additions and 3 deletions

View File

@@ -18,7 +18,7 @@ export const SettingsDialog = (props: SettingsDialogProps) => {
<P>
<Trans
i18nKey="settings:account.currentlyLoggedAs"
values={{ user: user?.email }}
values={{ user: user?.full_name || user?.email }}
components={[<Badge />]}
/>
</P>

View File

@@ -48,7 +48,7 @@ export const AccountTab = ({ id, onOpenChange }: AccountTabProps) => {
<P>
<Trans
i18nKey="settings:account.currentlyLoggedAs"
values={{ user: user?.email }}
values={{ user: user?.full_name || user?.email }}
components={[<Badge />]}
/>
</P>

View File

@@ -76,7 +76,7 @@ export const Header = () => {
tooltip={t('loggedInUserTooltip')}
tooltipType="delayed"
>
{user.email}
{user?.full_name || user?.email}
</Button>
<MenuList
items={[{ value: 'logout', label: t('logout') }]}