diff --git a/client/src/assets/icons/default-avatar.tsx b/client/src/assets/icons/default-avatar.tsx index 0f03fc9f73e..441ee8ca099 100644 --- a/client/src/assets/icons/default-avatar.tsx +++ b/client/src/assets/icons/default-avatar.tsx @@ -15,6 +15,7 @@ function DefaultAvatar( width='500px' xmlns='http://www.w3.org/2000/svg' xmlnsXlink='http://www.w3.org/1999/xlink' + aria-hidden='true' {...props} > {t('icons.avatar')} diff --git a/client/src/components/helpers/avatar-renderer.tsx b/client/src/components/helpers/avatar-renderer.tsx index b80b667ff5c..633c32147c2 100644 --- a/client/src/components/helpers/avatar-renderer.tsx +++ b/client/src/components/helpers/avatar-renderer.tsx @@ -9,12 +9,10 @@ interface AvatarRendererProps { isDonating?: boolean; isTopContributor?: boolean; picture: string; - userName: string; } function AvatarRenderer({ picture, - userName, isDonating, isTopContributor }: AvatarRendererProps): JSX.Element { @@ -44,14 +42,11 @@ function AvatarRenderer({ return (
+ {t('buttons.profile')} {isPlaceHolderImage ? ( ) : ( - {t('profile.avatar', + )}
); diff --git a/client/src/components/profile/__snapshots__/profile.test.tsx.snap b/client/src/components/profile/__snapshots__/profile.test.tsx.snap index 80fe8f95eb2..30b8b63fe06 100644 --- a/client/src/components/profile/__snapshots__/profile.test.tsx.snap +++ b/client/src/components/profile/__snapshots__/profile.test.tsx.snap @@ -23,7 +23,13 @@ exports[` renders correctly 1`] = `
+ + buttons.profile +