LCARS1 Display
+LCARS2 Display
+ ); diff --git a/webclient/src/Display.js b/webclient/src/Display.js index 72939f0..92df7cc 100644 --- a/webclient/src/Display.js +++ b/webclient/src/Display.js @@ -50,6 +50,47 @@ export function LCARS1Display(props) { ); }; +export function LCARS2Display(props) { + const { token } = props; + const [fullElement, setFullElement] = useState(false); + const ref = useRef(null); + + const goFullScreen = () => { + if ('wakeLock' in navigator) { + navigator.wakeLock.request('screen'); + } + + ref.current.requestFullscreen({ navigationUI: 'hide' }).then(() => { + setFullElement(true); + }); + }; + + return ( ++ +
+ } + +