From 61269eb0e7ccf7077de6f0df8337410dc23a8aad Mon Sep 17 00:00:00 2001 From: Mehdi Messaadi Date: Thu, 25 Jul 2024 15:16:06 +0100 Subject: [PATCH] [#530]: Fixed lint and prettier errors. --- frontend/src/components/Avatar/index.jsx | 2 +- frontend/src/components/Navigation/UserMenu.jsx | 13 +++++-------- 2 files changed, 6 insertions(+), 9 deletions(-) diff --git a/frontend/src/components/Avatar/index.jsx b/frontend/src/components/Avatar/index.jsx index 6ab65e41..9fb3cca8 100644 --- a/frontend/src/components/Avatar/index.jsx +++ b/frontend/src/components/Avatar/index.jsx @@ -27,9 +27,9 @@ function Avatar({ username }) { fontWeight: 300, pointerEvents: 'none', }} + textAnchor="middle" x="50%" y="52%" - textAnchor="middle" > {username} diff --git a/frontend/src/components/Navigation/UserMenu.jsx b/frontend/src/components/Navigation/UserMenu.jsx index 03b57c0a..ec9c4d98 100644 --- a/frontend/src/components/Navigation/UserMenu.jsx +++ b/frontend/src/components/Navigation/UserMenu.jsx @@ -44,10 +44,10 @@ function UserMenu() { imageExists(url).then((exists) => setGithubExists(exists)); }, [username]); - //This function takes the first letter of the username and converts it to uppercase + // This function takes the first letter of the username and converts it to uppercase const capitalizeFirstLetter = (string) => { return string.charAt(0).toUpperCase(); - } + }; return ( @@ -68,12 +68,9 @@ function UserMenu() { borderRadius: '50%', }} /> - ) - : ( - - )} - - + ) : ( + + )} {tPA('header')}