From f7936fa3fc2ad5763699ab55876d338226ae14f9 Mon Sep 17 00:00:00 2001 From: Dawid Tarasiuk Date: Fri, 18 Sep 2020 16:30:50 +0200 Subject: [PATCH 1/3] Fix avatar change button --- assets/images/photo-icon.svg | 8 +---- .../StaffProperties/StaffProperties.tsx | 29 ++++++++++++------- 2 files changed, 19 insertions(+), 18 deletions(-) diff --git a/assets/images/photo-icon.svg b/assets/images/photo-icon.svg index 57ee59835..d9662bedc 100644 --- a/assets/images/photo-icon.svg +++ b/assets/images/photo-icon.svg @@ -1,9 +1,3 @@ - - - - - - - + diff --git a/src/staff/components/StaffProperties/StaffProperties.tsx b/src/staff/components/StaffProperties/StaffProperties.tsx index 1a2b10f63..3cdc2f628 100644 --- a/src/staff/components/StaffProperties/StaffProperties.tsx +++ b/src/staff/components/StaffProperties/StaffProperties.tsx @@ -34,6 +34,14 @@ const useStyles = makeStyles( position: "relative", width: 120 }, + avatarActionText: { + "&:hover": { + textDecoration: "underline" + }, + color: "#fff", + cursor: "pointer", + fontSize: 12 + }, avatarDefault: { "& div": { color: "#fff", @@ -47,17 +55,10 @@ const useStyles = makeStyles( width: 120 }, avatarHover: { - "& p": { - "&:hover": { - textDecoration: "underline" - }, - color: theme.palette.primary.main, - cursor: "pointer", - fontSize: 12, - fontWeight: 500 - }, background: "#00000080", borderRadius: "100%", + fontSize: 12, + fontWeight: 500, height: 120, opacity: 0, padding: theme.spacing(2.5, 0), @@ -155,13 +156,19 @@ const StaffProperties: React.FC = props => { {canEditAvatar && (
- + - + Date: Fri, 18 Sep 2020 16:35:30 +0200 Subject: [PATCH 2/3] Update changelog --- CHANGELOG.md | 1 + 1 file changed, 1 insertion(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 7b14159dc..7632161ce 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -41,6 +41,7 @@ All notable, unreleased changes to this project will be documented in this file. - Restyle side menu - #697 by @dominik-zeglen - Add error info when fetching taxes - #701 by @dominik-zeglen - Fix return to previous page on screen size change - #710 by @orzechdev +- Fix avatar change button - #719 by @orzechdev ## 2.10.1 From e474f90a8efe3678b5af1ca709208361f00a9f6a Mon Sep 17 00:00:00 2001 From: Dawid Tarasiuk Date: Fri, 18 Sep 2020 16:56:22 +0200 Subject: [PATCH 3/3] Update test snapshots --- src/storybook/__snapshots__/Stories.test.ts.snap | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/storybook/__snapshots__/Stories.test.ts.snap b/src/storybook/__snapshots__/Stories.test.ts.snap index af14341ef..9ad778532 100644 --- a/src/storybook/__snapshots__/Stories.test.ts.snap +++ b/src/storybook/__snapshots__/Stories.test.ts.snap @@ -178586,12 +178586,12 @@ exports[`Storyshots Views / Staff / Staff member details himself 1`] = ` class="isvg pending" />
Change photo
Delete photo