mirror of
https://github.com/yume-chan/ya-webadb.git
synced 2025-10-05 19:42:15 +02:00
refactor(bin): move demo mode to new package
This commit is contained in:
parent
daf726f2e0
commit
41a9565eeb
18 changed files with 229 additions and 77 deletions
|
@ -5,7 +5,7 @@ import { observer } from "mobx-react-lite";
|
|||
import { NextPage } from "next";
|
||||
import Head from "next/head";
|
||||
import React, { useCallback, useEffect, useRef } from 'react';
|
||||
import { CommandBar, DemoMode, DeviceView } from '../components';
|
||||
import { CommandBar, DemoModePanel, DeviceView } from '../components';
|
||||
import { globalState } from "../state";
|
||||
import { Icons, RouteStackProps } from "../utils";
|
||||
|
||||
|
@ -123,7 +123,7 @@ const FrameBuffer: NextPage = (): JSX.Element | null => {
|
|||
<canvas ref={canvasRef} style={{ display: 'block' }} />
|
||||
</DeviceView>
|
||||
|
||||
<DemoMode style={{ display: state.demoModeVisible ? 'block' : 'none' }} />
|
||||
<DemoModePanel style={{ display: state.demoModeVisible ? 'block' : 'none' }} />
|
||||
</Stack>
|
||||
</Stack>
|
||||
);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue