Message Requests: Swap Unblock/Delete buttons to match mobile apps

This commit is contained in:
Josh Perez 2020-09-01 14:20:29 -04:00 committed by Josh Perez
parent 5b1536cc02
commit bb7d9cec7e

View file

@ -79,6 +79,18 @@ export const MessageRequestActions = ({
/> />
</p> </p>
<div className="module-message-request-actions__buttons"> <div className="module-message-request-actions__buttons">
<button
onClick={() => {
setMrState(MessageRequestState.deleting);
}}
tabIndex={0}
className={classNames(
'module-message-request-actions__buttons__button',
'module-message-request-actions__buttons__button--deny'
)}
>
{i18n('MessageRequests--delete')}
</button>
{isBlocked ? ( {isBlocked ? (
<button <button
onClick={() => { onClick={() => {
@ -106,18 +118,6 @@ export const MessageRequestActions = ({
{i18n('MessageRequests--block')} {i18n('MessageRequests--block')}
</button> </button>
)} )}
<button
onClick={() => {
setMrState(MessageRequestState.deleting);
}}
tabIndex={0}
className={classNames(
'module-message-request-actions__buttons__button',
'module-message-request-actions__buttons__button--deny'
)}
>
{i18n('MessageRequests--delete')}
</button>
{!isBlocked ? ( {!isBlocked ? (
<button <button
onClick={onAccept} onClick={onAccept}