feat: detect bee mode and enable/disable status checks accordingly (#318)

This commit is contained in:
Vojtech Simetka
2022-03-29 15:37:40 +02:00
committed by GitHub
parent bf24d61584
commit 8baecb783f
8 changed files with 78 additions and 42 deletions
@@ -7,7 +7,9 @@ import { Context } from '../../../providers/Bee'
export default function PeerConnection(): ReactElement | null {
const { status, isLoading, topology } = useContext(Context)
const isOk = status.topology
const { isEnabled, isOk } = status.topology
if (!isEnabled) return null
return (
<ExpandableList