refactor: remove unnecessary setup for displaying vnc feed

main
Josue 4 years ago
parent 96576f5055
commit e4f617ffc0
  1. 10
      striker-ui/components/Display.tsx

@ -1,23 +1,15 @@
import { useState, useEffect } from 'react';
// import { VncScreen } from 'react-vnc';
import VncDisplay from 'react-vnc-display';
import { Panel } from './Panels';
import { HeaderText } from './Text';
const Display = (): JSX.Element => {
const [mounted, setMounted] = useState<boolean>(false);
useEffect(() => {
setMounted(typeof window !== 'undefined');
}, [mounted]);
return (
<Panel>
<HeaderText text="Display" />
<VncDisplay
url="wss://spain.cdot.systems:5000/"
style={{
width: '51vw',
width: '50vw',
height: '70vh',
}}
/>

Loading…
Cancel
Save