From 3459820e146fd0d1956e746b7678aa6b5baf825c Mon Sep 17 00:00:00 2001 From: AnnatarHe Date: Tue, 7 Nov 2023 21:12:26 +0800 Subject: [PATCH] feat(navigation): update avatar dropdown in navigation bar --- src/components/navigation-bar/authed.tsx | 92 ++++++++++++------------ 1 file changed, 47 insertions(+), 45 deletions(-) diff --git a/src/components/navigation-bar/authed.tsx b/src/components/navigation-bar/authed.tsx index 43108759..9acec9d5 100644 --- a/src/components/navigation-bar/authed.tsx +++ b/src/components/navigation-bar/authed.tsx @@ -1,4 +1,4 @@ -import { Tooltip } from '@mantine/core' +import { Box, Divider, Tooltip } from '@mantine/core' import Link from 'next/link' import React, { useCallback } from 'react' import { useTranslation } from 'react-i18next' @@ -65,65 +65,67 @@ function LoggedNavigationBar(props: LoggedNavigationBarProps) {
  • - - + - - - - {profile.name} - - - )} - className='flex items-center' - > - {profile.name} - - } - onClick={onPhoneLogin} - > - {t('app.menu.loginByQRCode.title')} - - } - > - + + + + + + - + - } - onClick={onLogout} - > - {t('app.menu.logout')} - + + - - + +
  • )