mirror of
https://github.com/yume-chan/ya-webadb.git
synced 2025-10-06 03:50:18 +02:00
fix: fix issues in stream state
This commit is contained in:
parent
2a5843eb20
commit
5bc3d49334
14 changed files with 172 additions and 171 deletions
|
@ -5,7 +5,7 @@ import { autorun, makeAutoObservable, runInAction } from "mobx";
|
|||
import { observer } from "mobx-react-lite";
|
||||
import { NextPage } from "next";
|
||||
import Head from "next/head";
|
||||
import React, { useCallback, useEffect } from "react";
|
||||
import { useCallback, useEffect } from "react";
|
||||
import { ExternalLink } from "../components";
|
||||
import { globalState } from "../state";
|
||||
import { asyncEffect, Icons, RouteStackProps } from "../utils";
|
||||
|
@ -190,14 +190,12 @@ const TcpIp: NextPage = () => {
|
|||
offText="Disabled"
|
||||
onChange={handleServicePortEnabledChange}
|
||||
/>
|
||||
{globalState && (
|
||||
<TextField
|
||||
disabled={!!state.serviceListenAddresses}
|
||||
value={state.servicePort}
|
||||
styles={{ root: { width: 300 } }}
|
||||
onChange={handleServicePortChange}
|
||||
/>
|
||||
)}
|
||||
<TextField
|
||||
disabled={!globalState.device || !!state.serviceListenAddresses}
|
||||
value={state.servicePort}
|
||||
styles={{ root: { width: 300 } }}
|
||||
onChange={handleServicePortChange}
|
||||
/>
|
||||
</StackItem>
|
||||
|
||||
<StackItem>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue