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:
@@ -17,11 +17,10 @@ import { ROUTES } from '../../routes'
|
||||
import { sleepMs } from '../../utils'
|
||||
import { restartBeeNode, upgradeToLightNode } from '../../utils/desktop'
|
||||
import { ResolvedWallet } from '../../utils/wallet'
|
||||
import config from '../../config'
|
||||
import { BeeModes } from '@ethersphere/bee-js'
|
||||
|
||||
export function GiftCardFund(): ReactElement {
|
||||
const isBeeDesktop = config.BEE_DESKTOP_ENABLED
|
||||
const { isBeeDesktop } = useContext(SettingsContext)
|
||||
const { nodeAddresses, balance, nodeInfo } = useContext(BeeContext)
|
||||
const { provider, providerUrl } = useContext(SettingsContext)
|
||||
|
||||
|
||||
@@ -22,7 +22,6 @@ import { ROUTES } from '../../routes'
|
||||
import { sleepMs } from '../../utils'
|
||||
import { getBzzPriceAsDai, performSwap, restartBeeNode, upgradeToLightNode } from '../../utils/desktop'
|
||||
import { TopUpProgressIndicator } from './TopUpProgressIndicator'
|
||||
import config from '../../config'
|
||||
|
||||
const MINIMUM_XDAI = '0.1'
|
||||
const MINIMUM_XBZZ = '0.1'
|
||||
@@ -39,7 +38,7 @@ export function Swap({ header }: Props): ReactElement {
|
||||
|
||||
const { providerUrl } = useContext(SettingsContext)
|
||||
const { balance, nodeAddresses, nodeInfo } = useContext(BeeContext)
|
||||
const isBeeDesktop = config.BEE_DESKTOP_ENABLED
|
||||
const { isBeeDesktop } = useContext(SettingsContext)
|
||||
|
||||
const navigate = useNavigate()
|
||||
const { enqueueSnackbar } = useSnackbar()
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user