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:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user