Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Unverified Commit d23b2a4d authored by Simon Chan's avatar Simon Chan
Browse files

chore(demo): remove now useless speedometer

parent e27a0681
Loading
Loading
Loading
Loading
+1 −17
Original line number Diff line number Diff line
@@ -5,7 +5,7 @@ import AdbWebUsbBackend, { AdbWebUsbBackendWatcher } from '@yume-chan/adb-backen
import AdbWsBackend from '@yume-chan/adb-backend-ws';
import AdbWebCredentialStore from '@yume-chan/adb-credential-web';
import { observer } from 'mobx-react-lite';
import { useCallback, useEffect, useMemo, useRef, useState } from 'react';
import { useCallback, useEffect, useMemo, useState } from 'react';
import { globalState } from '../state';
import { CommonStackTokens, Icons } from '../utils';

@@ -16,20 +16,6 @@ const CredentialStore = new AdbWebCredentialStore();
function _Connect(): JSX.Element | null {
    const [supported, setSupported] = useState(true);

    const [bytesIn, setBytesIn] = useState(0);
    const byteInAcc = useRef(0);

    useEffect(() => {
        const id = setInterval(() => {
            setBytesIn(byteInAcc.current);
            byteInAcc.current = 0;
        }, 1000);

        return () => {
            clearInterval(id);
        };
    }, []);

    const [selectedBackend, setSelectedBackend] = useState<AdbBackend | undefined>();
    const [connecting, setConnecting] = useState(false);

@@ -303,8 +289,6 @@ function _Connect(): JSX.Element | null {
                    />
                )}

            {!!globalState.device && (<div>Transfer Rate: {bytesIn.toLocaleString()}B/s</div>)}

            <Dialog
                hidden={!connecting}
                dialogContentProps={{