{'unknown status ' + status}
; } }; const useStyles = makeStyles((theme) => ({ cell: { display: 'flex', alignItems: 'center', padding: theme.spacing(1), '& a': { textDecoration: 'none', }, }, status: { margin: theme.spacing(1, 2), }, expand: { width: '100%', lineHeight: '20px', }, bugTitleWrapper: { display: 'flex', flexDirection: 'row', flexWrap: 'wrap', //alignItems: 'center', }, title: { display: 'inline', color: theme.palette.text.primary, fontSize: '1.3rem', fontWeight: 500, marginBottom: theme.spacing(1), }, label: { maxWidth: '40ch', marginLeft: theme.spacing(0.25), marginRight: theme.spacing(0.25), }, details: { lineHeight: '1.5rem', color: theme.palette.text.secondary, }, commentCount: { fontSize: '1rem', minWidth: '2rem', marginLeft: theme.spacing(0.5), marginRight: theme.spacing(1), }, commentCountCell: { display: 'inline-flex', minWidth: theme.spacing(5), marginLeft: theme.spacing(0.5), }, })); type Props = { bug: BugRowFragment; }; function BugRow({ bug }: Props) { const classes = useStyles(); // Subtract 1 from totalCount as 1 comment is the bug description const commentCount = bug.comments.totalCount - 1; return (