fix(search): update to only link title in search results

Signed-off-by: Jonathan Sundquist <jonathan.sundquist@factset.com>
This commit is contained in:
Jonathan Sundquist
2022-11-14 08:51:14 -06:00
parent 50b941cf6b
commit a19cffbeed
6 changed files with 67 additions and 44 deletions
@@ -47,13 +47,17 @@ export const StackOverflowSearchResultListItem = (
};
return (
<Link to={location} noTrack onClick={handleClick}>
<>
<ListItem alignItems="center">
{props.icon && <ListItemIcon>{props.icon}</ListItemIcon>}
<Box flexWrap="wrap">
<ListItemText
primaryTypographyProps={{ variant: 'h6' }}
primary={_unescape(title)}
primary={
<Link to={location} noTrack onClick={handleClick}>
{_unescape(title)}
</Link>
}
secondary={`Author: ${text}`}
/>
<Chip label={`Answer(s): ${answers}`} size="small" />
@@ -64,6 +68,6 @@ export const StackOverflowSearchResultListItem = (
</Box>
</ListItem>
<Divider />
</Link>
</>
);
};