refactor: create component for preview and move display views to their own directory

main
Josue 4 years ago
parent 6e380fe11c
commit 783a0d99b6
  1. 20
      striker-ui/components/Display/Preview.tsx
  2. 4
      striker-ui/components/Display/index.tsx

@ -0,0 +1,20 @@
import VncDisplay from 'react-vnc-display';
import { Panel } from '../Panels';
import { HeaderText } from '../Text';
const Display = (): JSX.Element => {
return (
<Panel>
<HeaderText text="Display" />
<VncDisplay
url="wss://spain.cdot.systems:5000/"
style={{
width: '50vw',
height: '70vh',
}}
/>
</Panel>
);
};
export default Display;

@ -0,0 +1,4 @@
import FullSize from './FullSize';
import Preview from './Preview';
export { FullSize, Preview };
Loading…
Cancel
Save