0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-04-15 03:01:37 -05:00

Added in conditions to the submit button values to work on mobile

refs https://github.com/TryGhost/Team/issues/1703
This commit is contained in:
James Morris 2022-07-22 10:54:33 +01:00
parent fa411fdbf2
commit 4ab0bdf3b7

View file

@ -193,11 +193,11 @@ const Form = (props) => {
let submitText;
if (props.isReply) {
submitText = 'Add reply';
submitText = <><span className="hidden sm:inline">Add </span><span className="capitalize sm:normal-case">reply</span></>;
} else if (props.isEdit) {
submitText = 'Save';
} else {
submitText = 'Add comment';
submitText = <><span className="hidden sm:inline">Add </span><span className="capitalize sm:normal-case">comment</span></>;
}
return (