diff --git a/__tests__/src/components/WindowSideBarAnnotationsPanel.test.js b/__tests__/src/components/WindowSideBarAnnotationsPanel.test.js index 6faa978d6d9936b24cf4b4e95b6ba2d15d6fb882..811a8dbb9b0aeb652e9fc5eb0505c978d64951cf 100644 --- a/__tests__/src/components/WindowSideBarAnnotationsPanel.test.js +++ b/__tests__/src/components/WindowSideBarAnnotationsPanel.test.js @@ -2,7 +2,7 @@ import { render, screen } from 'test-utils'; import i18next from 'i18next'; import CanvasAnnotations from '../../../src/containers/CanvasAnnotations'; -import { WindowSideBarAnnotationsPanel } from '../../../src/components/WindowSideBarAnnotationsPanel'; +import WindowSideBarAnnotationsPanel from '../../../src/components/WindowSideBarAnnotationsPanel'; /** */ function createWrapper(props, state) { diff --git a/src/components/AnnotationManifestsAccordion.js b/src/components/AnnotationManifestsAccordion.js index 31f3eb74497bfc8f0a429093c5819c188f41d791..8e6845ad19e7a27f875b00959204d2b8564729f1 100644 --- a/src/components/AnnotationManifestsAccordion.js +++ b/src/components/AnnotationManifestsAccordion.js @@ -46,7 +46,7 @@ export class AnnotationManifestsAccordion extends Component { const { annotation } = this.state; annotation.manifestsOpen = true; e.stopPropagation(); - this.state = { annotation }; + this.setState({ annotation }); } /** */ diff --git a/src/components/ScrollIndicatedDialogContent.js b/src/components/ScrollIndicatedDialogContent.js index 01e10ca255355b32e255b4f3380d0bfa6e814fb5..388a0b861b6336404967f6ba0309cce4bd428901 100644 --- a/src/components/ScrollIndicatedDialogContent.js +++ b/src/components/ScrollIndicatedDialogContent.js @@ -16,7 +16,7 @@ const getOverlayAlpha = (elevation) => { }; const Root = styled(DialogContent, { name: 'ScrollIndicatedDialogContent', slot: 'root' })(({ ownerState, theme }) => { - // In dark mode, paper has a elevation-dependent background color: + // In dark mode, paper has an elevation-dependent background color: // https://github.com/mui/material-ui/blob/v5.15.0/packages/mui-material/src/Paper/Paper.js#L55-L60 const bgcolor = theme.palette.mode === 'dark' ? { backgroundImage: `linear-gradient(${alpha( diff --git a/src/components/WindowSideBarAnnotationsPanel.js b/src/components/WindowSideBarAnnotationsPanel.js index cb552fcef2858f27a9faab8a5e788f7755d6f1fa..3db9877cd669a67db5a4ccff25ab5dbb2477ddf5 100644 --- a/src/components/WindowSideBarAnnotationsPanel.js +++ b/src/components/WindowSideBarAnnotationsPanel.js @@ -1,4 +1,4 @@ -import { useRef, useEffect, useState } from 'react'; +import { useRef, useEffect } from 'react'; import PropTypes from 'prop-types'; import Typography from '@mui/material/Typography'; import AnnotationSettings from '../containers/AnnotationSettings';