Comment: Swap the order of "Edit" and "Remove"

This order is more common.
This commit is contained in:
infinite-persistence 2021-09-24 10:00:37 +08:00
parent 65d7e478ac
commit 0e391a3d78
No known key found for this signature in database
GPG key ID: B9C3252EDC3D0AA0

View file

@ -185,6 +185,13 @@ function CommentMenuList(props: Props) {
</MenuItem> </MenuItem>
)} )}
{commentIsMine && activeChannelClaim && activeChannelClaim.permanent_url === authorUri && !disableEdit && (
<MenuItem className="comment__menu-option menu__link" onSelect={handleEditComment}>
<Icon aria-hidden icon={ICONS.EDIT} />
{__('Edit')}
</MenuItem>
)}
{!disableRemove && {!disableRemove &&
activeChannelClaim && activeChannelClaim &&
(activeChannelClaim.permanent_url === authorUri || (activeChannelClaim.permanent_url === authorUri ||
@ -197,13 +204,6 @@ function CommentMenuList(props: Props) {
</MenuItem> </MenuItem>
)} )}
{commentIsMine && activeChannelClaim && activeChannelClaim.permanent_url === authorUri && !disableEdit && (
<MenuItem className="comment__menu-option menu__link" onSelect={handleEditComment}>
<Icon aria-hidden icon={ICONS.EDIT} />
{__('Edit')}
</MenuItem>
)}
{!commentIsMine && ( {!commentIsMine && (
<MenuItem className="comment__menu-option" onSelect={handleCommentBlock}> <MenuItem className="comment__menu-option" onSelect={handleCommentBlock}>
{getBlockOptionElem()} {getBlockOptionElem()}