I have this material-ui ListItemText:
<ListItemText primary={<div>
<Table className={classes.table}>
<TableRow>
<TableCell width="40">{item.issue_state}</TableCell>
<TableCell width="40">{item.issue_number}</TableCell>
<TableCell width="600">{item.issue_title}</TableCell>
<TableCell width="600">{item.issue_url}</TableCell>
</TableRow>
</Table>
</div>}/>
Rather than displaying the URL, I'd like to have something like this:
if (item.issue_url.includes("github.com") {
item.issue_url = 'Public'
}
else if (item.issue_url.includes("github.company.com") {
item.issue_url = 'Private'
}
where the TableCell displays Public of Private rather than the whole URL. Can this be done?