Skip to content
Snippets Groups Projects
Commit ac8f8b5f authored by Anthony's avatar Anthony
Browse files

Fix linter error and warning

parent e24a632e
Branches
Tags
No related merge requests found
...@@ -2,7 +2,7 @@ import { render, screen } from 'test-utils'; ...@@ -2,7 +2,7 @@ import { render, screen } from 'test-utils';
import i18next from 'i18next'; import i18next from 'i18next';
import CanvasAnnotations from '../../../src/containers/CanvasAnnotations'; import CanvasAnnotations from '../../../src/containers/CanvasAnnotations';
import { WindowSideBarAnnotationsPanel } from '../../../src/components/WindowSideBarAnnotationsPanel'; import WindowSideBarAnnotationsPanel from '../../../src/components/WindowSideBarAnnotationsPanel';
/** */ /** */
function createWrapper(props, state) { function createWrapper(props, state) {
......
...@@ -46,7 +46,7 @@ export class AnnotationManifestsAccordion extends Component { ...@@ -46,7 +46,7 @@ export class AnnotationManifestsAccordion extends Component {
const { annotation } = this.state; const { annotation } = this.state;
annotation.manifestsOpen = true; annotation.manifestsOpen = true;
e.stopPropagation(); e.stopPropagation();
this.state = { annotation }; this.setState({ annotation });
} }
/** */ /** */
......
...@@ -16,7 +16,7 @@ const getOverlayAlpha = (elevation) => { ...@@ -16,7 +16,7 @@ const getOverlayAlpha = (elevation) => {
}; };
const Root = styled(DialogContent, { name: 'ScrollIndicatedDialogContent', slot: 'root' })(({ ownerState, theme }) => { 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 // 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' ? { const bgcolor = theme.palette.mode === 'dark' ? {
backgroundImage: `linear-gradient(${alpha( backgroundImage: `linear-gradient(${alpha(
......
import { useRef, useEffect, useState } from 'react'; import { useRef, useEffect } from 'react';
import PropTypes from 'prop-types'; import PropTypes from 'prop-types';
import Typography from '@mui/material/Typography'; import Typography from '@mui/material/Typography';
import AnnotationSettings from '../containers/AnnotationSettings'; import AnnotationSettings from '../containers/AnnotationSettings';
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment