fix(search): update to only link title in search results
Signed-off-by: Jonathan Sundquist <jonathan.sundquist@factset.com>
This commit is contained in:
+7
-3
@@ -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>
|
||||
</>
|
||||
);
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user