From fa6cb627c15ed445278ece43310f5e61a634b8d9 Mon Sep 17 00:00:00 2001 From: Josue Date: Fri, 9 Jul 2021 11:48:59 -0400 Subject: [PATCH] refactor(fron-end): switch to custom implementation of VncDisplay --- striker-ui/components/Display/FullSize.tsx | 2 +- striker-ui/types/novnc.node.d.ts | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) create mode 100644 striker-ui/types/novnc.node.d.ts diff --git a/striker-ui/components/Display/FullSize.tsx b/striker-ui/components/Display/FullSize.tsx index 25510eb1..d2c3479d 100644 --- a/striker-ui/components/Display/FullSize.tsx +++ b/striker-ui/components/Display/FullSize.tsx @@ -3,7 +3,7 @@ import { Box } from '@material-ui/core'; import { makeStyles } from '@material-ui/core/styles'; import CloseIcon from '@material-ui/icons/Close'; import IconButton from '@material-ui/core/IconButton'; -import VncDisplay from 'react-vnc-display'; +import VncDisplay from './VncDisplay'; import { Panel } from '../Panels'; import { RED, TEXT } from '../../lib/consts/DEFAULT_THEME'; diff --git a/striker-ui/types/novnc.node.d.ts b/striker-ui/types/novnc.node.d.ts new file mode 100644 index 00000000..2603228e --- /dev/null +++ b/striker-ui/types/novnc.node.d.ts @@ -0,0 +1 @@ +declare module 'novnc-node';