Skip to content

Commit

Permalink
Fix types
Browse files Browse the repository at this point in the history
  • Loading branch information
Corey Robertson committed Sep 20, 2021
1 parent 81c343f commit 0304d11
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 13 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand Down
13 changes: 3 additions & 10 deletions x-pack/plugins/canvas/public/components/workpad/workpad.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -34,17 +34,10 @@ export const Workpad: FC<ContainerProps> = (props) => {
const dispatch = useDispatch();
const [grid, setGrid] = useState<boolean>(false);
const [transition, setTransition] = useState<any | null>(null);
const [prevSelectedPageNumber, setPrevSelectedPageNumber] = useState<number>(0);
const [prevSelectedPageNumber] = useState<number>(0);

const {
isFullscreen,
setFullscreen,
undo,
redo,
autoplayInterval,
nextPage,
previousPage,
} = useContext(WorkpadRoutingContext);
const { isFullscreen, setFullscreen, undo, redo, autoplayInterval, nextPage, previousPage } =
useContext(WorkpadRoutingContext);

const platformService = usePlatformService();

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand Down

0 comments on commit 0304d11

Please sign in to comment.