feat: check whether the app runs within bee-desktop is now an environment variable (#490)

* feat: check whether the app runs within bee-desktop is now an environment variable

* chore: remove console.log
This commit is contained in:
Vojtech Simetka
2022-07-25 10:28:17 +02:00
committed by GitHub
parent 6bfe97be5d
commit f01477ea70
9 changed files with 45 additions and 55 deletions
+2 -2
View File
@@ -17,11 +17,11 @@ import { ROUTES } from '../../routes'
import { sleepMs } from '../../utils'
import { restartBeeNode, upgradeToLightNode } from '../../utils/desktop'
import { ResolvedWallet } from '../../utils/wallet'
import { useIsBeeDesktop } from '../../hooks/apiHooks'
import config from '../../config'
import { BeeModes } from '@ethersphere/bee-js'
export function GiftCardFund(): ReactElement {
const { isBeeDesktop } = useIsBeeDesktop()
const isBeeDesktop = config.BEE_DESKTOP_ENABLED
const { nodeAddresses, balance, nodeInfo } = useContext(BeeContext)
const { provider, providerUrl } = useContext(TopUpContext)