feat: pass isBeeDesktop as Bee Dashboard component property (#510)

* feat: pass isBeeDesktop as Bee Dashboard component property

* chore: remove console log
This commit is contained in:
Vojtech Simetka
2022-08-02 09:53:50 +02:00
committed by GitHub
parent 72488fd5a3
commit 4c48657fca
13 changed files with 72 additions and 59 deletions
+1 -2
View File
@@ -12,7 +12,6 @@ import { SwarmButton } from '../../components/SwarmButton'
import { ROUTES } from '../../routes'
import { CheckState, Context as BeeContext } from '../../providers/Bee'
import { Context as SettingsContext } from '../../providers/Settings'
import config from '../../config'
import { BeeModes } from '@ethersphere/bee-js'
import { restartBeeNode, upgradeToLightNode } from '../../utils/desktop'
import { Loading } from '../../components/Loading'
@@ -39,7 +38,7 @@ const MINIMUM_XBZZ = '0.1'
export default function TopUp(): ReactElement {
const navigate = useNavigate()
const styles = useStyles()
const isBeeDesktop = config.BEE_DESKTOP_ENABLED
const { isBeeDesktop } = useContext(SettingsContext)
const { balance, nodeInfo, status } = useContext(BeeContext)
const { providerUrl } = useContext(SettingsContext)
const [loading, setLoading] = useState(false)