contact-js: change text to 'delete group' when removing yourself as a member when you own the group

This commit is contained in:
Logan Allen 2020-02-12 14:30:11 -08:00
parent 5aa7a91134
commit ef8aa94171
2 changed files with 5 additions and 2 deletions

File diff suppressed because one or more lines are too long

View File

@ -514,7 +514,10 @@ export class ContactCard extends Component {
`ml3 mt2 mb2 f9 pa1 ba red2 br2 b--red2 pointer ` + adminOpt
}
onClick={this.removeFromGroup}>
Remove from Group
{(
props.ship === window.ship && props.path.includes(window.ship)
? "Delete Group" : "Remove from Group"
)}
</button>
</div>
<div className="h-100 w-100 overflow-x-hidden pb8">{card}</div>