diff --git a/x-pack/plugins/canvas/public/components/workpad/workpad.component.tsx b/x-pack/plugins/canvas/public/components/workpad/workpad.component.tsx index a191d0c9ea361..1ac737bc543eb 100644 --- a/x-pack/plugins/canvas/public/components/workpad/workpad.component.tsx +++ b/x-pack/plugins/canvas/public/components/workpad/workpad.component.tsx @@ -6,11 +6,11 @@ */ import React, { FC } from 'react'; -import PropTypes from 'prop-types'; +// @ts-expect-error import Style from 'style-it'; +// @ts-expect-error import { WorkpadPage } from '../workpad_page'; import { Fullscreen } from '../fullscreen'; -import { isTextInput } from '../../lib/is_text_input'; import { HEADER_BANNER_HEIGHT, WORKPAD_CANVAS_BUFFER } from '../../../common/lib/constants'; import { CommitFn, CanvasPage } from '../../../types'; import { WorkpadShortcuts } from './workpad_shortcuts.component'; diff --git a/x-pack/plugins/canvas/public/components/workpad/workpad.tsx b/x-pack/plugins/canvas/public/components/workpad/workpad.tsx index 9165f7f8de84d..622c885b6ef28 100644 --- a/x-pack/plugins/canvas/public/components/workpad/workpad.tsx +++ b/x-pack/plugins/canvas/public/components/workpad/workpad.tsx @@ -34,17 +34,10 @@ export const Workpad: FC = (props) => { const dispatch = useDispatch(); const [grid, setGrid] = useState(false); const [transition, setTransition] = useState(null); - const [prevSelectedPageNumber, setPrevSelectedPageNumber] = useState(0); + const [prevSelectedPageNumber] = useState(0); - const { - isFullscreen, - setFullscreen, - undo, - redo, - autoplayInterval, - nextPage, - previousPage, - } = useContext(WorkpadRoutingContext); + const { isFullscreen, setFullscreen, undo, redo, autoplayInterval, nextPage, previousPage } = + useContext(WorkpadRoutingContext); const platformService = usePlatformService(); diff --git a/x-pack/plugins/canvas/public/components/workpad/workpad_shortcuts.component.tsx b/x-pack/plugins/canvas/public/components/workpad/workpad_shortcuts.component.tsx index 47453752f4098..a0393999d2321 100644 --- a/x-pack/plugins/canvas/public/components/workpad/workpad_shortcuts.component.tsx +++ b/x-pack/plugins/canvas/public/components/workpad/workpad_shortcuts.component.tsx @@ -5,6 +5,7 @@ * 2.0. */ import React from 'react'; +// @ts-expect-error import { Shortcuts } from 'react-shortcuts'; import { isTextInput } from '../../lib/is_text_input'; import { Props } from './workpad.component'; diff --git a/x-pack/plugins/canvas/public/components/workpad_app/workpad_app.component.tsx b/x-pack/plugins/canvas/public/components/workpad_app/workpad_app.component.tsx index 4ae6abe047455..6e380088bd84b 100644 --- a/x-pack/plugins/canvas/public/components/workpad_app/workpad_app.component.tsx +++ b/x-pack/plugins/canvas/public/components/workpad_app/workpad_app.component.tsx @@ -9,7 +9,6 @@ import React, { FC, MouseEventHandler, useRef, useCallback } from 'react'; import PropTypes from 'prop-types'; import { Sidebar } from '../../components/sidebar'; import { Toolbar } from '../../components/toolbar'; -// @ts-expect-error Untyped local import { Workpad } from '../workpad'; import { WorkpadHeader } from '../workpad_header'; import { CANVAS_LAYOUT_STAGE_CONTENT_SELECTOR } from '../../../common/lib/constants';