From 884bebeeb813631fa7bccae67d7bda400889fe0a Mon Sep 17 00:00:00 2001 From: gets0ul Date: Sun, 13 Sep 2020 16:33:37 +0700 Subject: [PATCH 1/2] Update the SVG of default user avatar so it does not use ids and masks to avoid the issue of the default avatar being not displayed because it shares the same id with other svg. --- .../components/__snapshots__/Avatar.jsx.snap | 42 ++++--------------- src/assets/images/default-user-avatar.svg | 11 +---- 2 files changed, 9 insertions(+), 44 deletions(-) diff --git a/__tests__/shared/components/__snapshots__/Avatar.jsx.snap b/__tests__/shared/components/__snapshots__/Avatar.jsx.snap index 0e9da75..45d3236 100644 --- a/__tests__/shared/components/__snapshots__/Avatar.jsx.snap +++ b/__tests__/shared/components/__snapshots__/Avatar.jsx.snap @@ -7,45 +7,17 @@ exports[`Snapshots 1`] = ` viewBox="0 0 141 141" width="141" xmlns="http://www.w3.org/2000/svg" - xmlnsXlink="http://www.w3.org/1999/xlink" > ico-user-default - - - - - - - - - - + opacity=".2" + stroke="#A3A3AE" + strokeWidth="3" + /> `; diff --git a/src/assets/images/default-user-avatar.svg b/src/assets/images/default-user-avatar.svg index ed6ce1a..eee2a66 100644 --- a/src/assets/images/default-user-avatar.svg +++ b/src/assets/images/default-user-avatar.svg @@ -3,17 +3,10 @@ ico-user-default Created with Sketch. - - - - + - - - - - + From b3eee20245e14e8a070835509fdeaf91f67b865c Mon Sep 17 00:00:00 2001 From: gets0ul Date: Sun, 13 Sep 2020 19:59:03 +0700 Subject: [PATCH 2/2] fix test snapshot --- __tests__/shared/components/__snapshots__/Avatar.jsx.snap | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/__tests__/shared/components/__snapshots__/Avatar.jsx.snap b/__tests__/shared/components/__snapshots__/Avatar.jsx.snap index 45d3236..2e81968 100644 --- a/__tests__/shared/components/__snapshots__/Avatar.jsx.snap +++ b/__tests__/shared/components/__snapshots__/Avatar.jsx.snap @@ -2,7 +2,7 @@ exports[`Snapshots 1`] = `