fix: change status page depending on desktop mode (#573)

* fix: change status page depending on desktop mode

* refactor: check desktop reachability periodically
This commit is contained in:
Cafe137
2022-11-07 14:02:22 +01:00
committed by GitHub
parent 693609810d
commit a4b8e7ca25
7 changed files with 77 additions and 14 deletions
@@ -8,8 +8,9 @@ import { CheckState, Context } from '../../../providers/Bee'
export default function PeerConnection(): ReactElement | null {
const { status, isLoading, topology } = useContext(Context)
const { isEnabled, checkState } = status.topology
const { checkState: debugApiCheckState } = status.debugApiConnection
if (!isEnabled) return null
if (!isEnabled || debugApiCheckState === CheckState.ERROR) return null
let text: ReactNode
switch (checkState) {