From 7b7b8b9443c279f35481fb97112db2b0f3f9bceb Mon Sep 17 00:00:00 2001 From: Lim Chee Aun Date: Tue, 13 Dec 2022 01:14:52 +0800 Subject: [PATCH] Different copy for editing --- src/components/compose.jsx | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/components/compose.jsx b/src/components/compose.jsx index e60dd1a8..654f0806 100644 --- a/src/components/compose.jsx +++ b/src/components/compose.jsx @@ -427,7 +427,11 @@ export default ({ onClose, replyToStatus, editStatus }) => { class="large" ref={textareaRef} placeholder={ - replyToStatus ? 'Post your reply' : 'What are you doing?' + replyToStatus + ? 'Post your reply' + : editStatus + ? 'Edit your status' + : 'What are you doing?' } required={mediaAttachments.length === 0} autoCapitalize="sentences" @@ -528,7 +532,7 @@ export default ({ onClose, replyToStatus, editStatus }) => { class="large" disabled={uiState === 'loading'} > - {replyToStatus ? 'Reply' : 'Post'} + {replyToStatus ? 'Reply' : editStatus ? 'Update' : 'Post'}