From: Kevin Silva Date: Mon, 22 Jan 2024 14:17:03 +0000 (+0100) Subject: SONAR-21482 - User profile menu adopts new UI X-Git-Tag: 10.4.0.87286~81 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=018f677a8d361cde378c9221d13230e9e0ab27c6;p=sonarqube.git SONAR-21482 - User profile menu adopts new UI --- diff --git a/server/sonar-web/src/main/js/apps/account/Account.tsx b/server/sonar-web/src/main/js/apps/account/Account.tsx index d679397c531..0cbb0cfade6 100644 --- a/server/sonar-web/src/main/js/apps/account/Account.tsx +++ b/server/sonar-web/src/main/js/apps/account/Account.tsx @@ -17,6 +17,7 @@ * along with this program; if not, write to the Free Software Foundation, * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ +import { LargeCenteredLayout, PageContentFontWrapper, TopBar } from 'design-system'; import * as React from 'react'; import { Helmet } from 'react-helmet-async'; import { Outlet } from 'react-router-dom'; @@ -34,26 +35,30 @@ export default function Account() { const title = translate('my_account.page'); return (
- - - -
-
- +
+ +
+ +
+
-
- -
+ + + + + + + +
); } diff --git a/server/sonar-web/src/main/js/apps/account/components/Nav.tsx b/server/sonar-web/src/main/js/apps/account/components/Nav.tsx index 1c62a570809..68625aca7bc 100644 --- a/server/sonar-web/src/main/js/apps/account/components/Nav.tsx +++ b/server/sonar-web/src/main/js/apps/account/components/Nav.tsx @@ -17,30 +17,17 @@ * along with this program; if not, write to the Free Software Foundation, * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ +import { NavBarTabLink, NavBarTabs } from 'design-system'; import * as React from 'react'; -import { NavLink } from 'react-router-dom'; -import NavBarTabs from '../../../components/ui/NavBarTabs'; import { translate } from '../../../helpers/l10n'; export default function Nav() { return ( - + + + + + + ); } diff --git a/server/sonar-web/src/main/js/apps/account/components/UserCard.tsx b/server/sonar-web/src/main/js/apps/account/components/UserCard.tsx index 177e3e58368..e9ae7d5fa6f 100644 --- a/server/sonar-web/src/main/js/apps/account/components/UserCard.tsx +++ b/server/sonar-web/src/main/js/apps/account/components/UserCard.tsx @@ -17,8 +17,8 @@ * along with this program; if not, write to the Free Software Foundation, * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ +import { Avatar } from 'design-system'; import * as React from 'react'; -import LegacyAvatar from '../../../components/ui/LegacyAvatar'; import { LoggedInUser } from '../../../types/users'; interface Props { @@ -27,13 +27,9 @@ interface Props { export default function UserCard({ user }: Props) { return ( -
-
- -
-

- {user.name} -

-
+ <> + + {user.name} + ); }