Add explanation to mute dialog, refactor and clean up mute/block UI (#11992)
* Add some explanation to the mute modal dialog
* Remove `isSubmitting` from mute modal code, this wasn't used
* Refactor block modal
Signed-off-by: Thibaut Girka <thib@sitedethib.com>
* Refactor SCSS a bit
* Put mute modal toggle to the same side as in the report dialog for consistency
* Reword mute explanation
* Fix mute explanation styling
* Left-align all text in mute confirmation modal
redraftMessage:{id:'confirmations.redraft.message',defaultMessage:'Are you sure you want to delete this status and re-draft it? Favourites and boosts will be lost, and replies to the original post will be orphaned.'},
replyMessage:{id:'confirmations.reply.message',defaultMessage:'Replying now will overwrite the message you are currently composing. Are you sure you want to proceed?'},
message:<FormattedMessageid='confirmations.block.message'defaultMessage='Are you sure you want to block {name}?'values={{name:<strong>@{account.get('acct')}</strong> }} />,
message:<FormattedMessageid='confirmations.block.message'defaultMessage='Are you sure you want to block {name}?'values={{name:<strong>@{account.get('acct')}</strong> }} />,
redraftMessage:{id:'confirmations.redraft.message',defaultMessage:'Are you sure you want to delete this status and re-draft it? Favourites and boosts will be lost, and replies to the original post will be orphaned.'},
replyMessage:{id:'confirmations.reply.message',defaultMessage:'Replying now will overwrite the message you are currently composing. Are you sure you want to proceed?'},
message:<FormattedMessageid='confirmations.block.message'defaultMessage='Are you sure you want to block {name}?'values={{name:<strong>@{account.get('acct')}</strong> }} />,
redraftMessage:{id:'confirmations.redraft.message',defaultMessage:'Are you sure you want to delete this status and re-draft it? Favourites and boosts will be lost, and replies to the original post will be orphaned.'},
replyMessage:{id:'confirmations.reply.message',defaultMessage:'Replying now will overwrite the message you are currently composing. Are you sure you want to proceed?'},
@ -296,19 +294,9 @@ class Status extends ImmutablePureComponent {
}
handleBlockClick=(status)=>{
const{dispatch,intl}=this.props;
const{dispatch}=this.props;
constaccount=status.get('account');
dispatch(openModal('CONFIRM',{
message:<FormattedMessageid='confirmations.block.message'defaultMessage='Are you sure you want to block {name}?'values={{name:<strong>@{account.get('acct')}</strong> }} />,