Remove delete button from message details screen

This commit is contained in:
Evan Hahn 2021-07-12 14:57:58 -05:00 committed by GitHub
parent 49dcc11a86
commit d4558dc13b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 0 additions and 53 deletions

View file

@ -130,24 +130,6 @@ export class MessageDetail extends React.Component<Props> {
);
}
public renderDeleteButton(): JSX.Element {
const { deleteMessage, i18n, message } = this.props;
return (
<div className="module-message-detail__delete-button-container">
<button
type="button"
onClick={() => {
deleteMessage(message.id);
}}
className="module-message-detail__delete-button"
>
{i18n('deleteThisMessage')}
</button>
</div>
);
}
public renderContact(contact: Contact): JSX.Element {
const { i18n, message, showSafetyNumber, sendAnyway } = this.props;
const errors = contact.errors || [];
@ -357,7 +339,6 @@ export class MessageDetail extends React.Component<Props> {
</tbody>
</table>
{this.renderContacts()}
{this.renderDeleteButton()}
</div>
);
}