Skip to content
Snippets Groups Projects
Commit 39561392 authored by Antoine Roy's avatar Antoine Roy
Browse files

fix-error

parent fd236dcb
No related branches found
No related tags found
1 merge request!21Fixing error
Pipeline #1698 failed
......@@ -166,34 +166,17 @@ export class CanvasAnnotations extends Component {
onMouseEnter={() => this.handleAnnotationHover(annotation)}
onMouseLeave={this.handleAnnotationBlur}
>
<ListItemText primaryTypographyProps={{ variant: 'body2' }}>
<SanitizedHtml
ruleSet={htmlSanitizationRuleSet}
htmlString={annotation.content}
/>
<div>
{
annotation.tags.map(tag => (
<Chip
size="small"
variant="outlined"
label={tag}
id={tag}
sx={theme => ({
backgroundColor: theme.palette.background.paper,
marginRight: theme.spacing(0.5),
marginTop: theme.spacing(1),
})}
key={tag.toString()}
/>
<ListItemText
primaryTypographyProps={{ variant: 'body2' }}
primary={
<SanitizedHtml ruleSet={htmlSanitizationRuleSet} htmlString={annotation.content} />
}
secondary={
annotation.tags.map((tag) => (
<Chip component="span" size="small" variant="outlined" label={tag} id={tag} key={tag.toString()} />
))
}
<AnnotationManifestsAccordion
annotation={annotation}
t={t}
/>
</div>
</ListItemText>
</MenuItem>
</ScrollTo>
))
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment