From fffa42d19e072c9d7a77b7f36bd0ee07c11b5538 Mon Sep 17 00:00:00 2001 From: Anthony Geourjon <anthony.geourjon@tetras-libre.fr> Date: Wed, 22 Feb 2023 11:34:43 +0100 Subject: [PATCH] Undo lint for stay close to main mirador branch --- src/components/CanvasAnnotations.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/components/CanvasAnnotations.js b/src/components/CanvasAnnotations.js index e8842d8e8..2dadbf89a 100644 --- a/src/components/CanvasAnnotations.js +++ b/src/components/CanvasAnnotations.js @@ -6,8 +6,8 @@ import MenuList from '@material-ui/core/MenuList'; import MenuItem from '@material-ui/core/MenuItem'; import ListItemText from '@material-ui/core/ListItemText'; import Typography from '@material-ui/core/Typography'; -import { ScrollTo } from './ScrollTo'; import SanitizedHtml from '../containers/SanitizedHtml'; +import { ScrollTo } from './ScrollTo'; import AnnotationManifestsAccordion from '../containers/AnnotationManifestsAccordion'; /** @@ -43,12 +43,14 @@ export class CanvasAnnotations extends Component { /** */ handleAnnotationHover(annotation) { const { hoverAnnotation, windowId } = this.props; + hoverAnnotation(windowId, [annotation.id]); } /** */ handleAnnotationBlur() { const { hoverAnnotation, windowId } = this.props; + hoverAnnotation(windowId, []); } @@ -57,8 +59,8 @@ export class CanvasAnnotations extends Component { */ render() { const { - listContainerComponent, htmlSanitizationRuleSet, hoveredAnnotationIds, annotations, autoScroll, classes, index, label, selectedAnnotationId, t, totalSize, + listContainerComponent, htmlSanitizationRuleSet, hoveredAnnotationIds, containerRef, } = this.props; if (annotations.length === 0) return null; -- GitLab