From ac3dd62e6e00c74075dbeb61f18f0b27f11cd319 Mon Sep 17 00:00:00 2001 From: James Morris Date: Mon, 8 Aug 2022 16:22:46 +0100 Subject: [PATCH] Added in a hover state for editng bio - Improved the affordance for editing bio - Added a new edit icon for this refs https://github.com/TryGhost/Team/issues/1756 --- apps/comments-ui/src/components/Form.js | 11 +++++++---- apps/comments-ui/src/images/icons/edit.svg | 1 + 2 files changed, 8 insertions(+), 4 deletions(-) create mode 100644 apps/comments-ui/src/images/icons/edit.svg diff --git a/apps/comments-ui/src/components/Form.js b/apps/comments-ui/src/components/Form.js index 0b8d13d9cf..749f159aa9 100644 --- a/apps/comments-ui/src/components/Form.js +++ b/apps/comments-ui/src/components/Form.js @@ -7,6 +7,7 @@ import {getEditorConfig} from '../utils/editor'; import {isMobile} from '../utils/helpers'; // import {formatRelativeTime} from '../utils/helpers'; import {ReactComponent as SpinnerIcon} from '../images/icons/spinner.svg'; +import {ReactComponent as EditIcon} from '../images/icons/edit.svg'; const Form = (props) => { const {member, postId, dispatchAction, avatarSaturation} = useContext(AppContext); @@ -408,21 +409,23 @@ const Form = (props) => { leaveFrom="opacity-100" leaveTo="opacity-0" > - + }}>{memberName ? memberName : 'Anonymous'}
+ }}>{memberBio ? memberBio : 'Add your bio'} + {memberBio && } +
diff --git a/apps/comments-ui/src/images/icons/edit.svg b/apps/comments-ui/src/images/icons/edit.svg new file mode 100644 index 0000000000..64301c9298 --- /dev/null +++ b/apps/comments-ui/src/images/icons/edit.svg @@ -0,0 +1 @@ + \ No newline at end of file