-
- Your chequebook is either not deployed or funded. To run the node you will need xDAI and xBZZ on the xDai
- network. You may need to aquire BZZ (e.g. bzz.exchange) and bridge it
- to the xDai network through the omni bridge. To pay the
- transaction fees, you will also need xDAI token. You can purchase DAI on the network and bridge it to xDai
- network through the xDai Bridge. See the{' '}
- official xDai website for more information.
-
-
+
+ Chequebook Deployment & Funding
+ >
+ }
+ >
+
+ {isOk ? (
+ 'Your chequebook is deployed and funded'
+ ) : (
+ <>
+ Your chequebook is either not deployed or funded. To run the node you will need xDAI and xBZZ on the xDai
+ network. You may need to aquire BZZ (e.g. bzz.exchange) and bridge it to
+ the xDai network through the omni bridge. To pay the
+ transaction fees, you will also need xDAI token. You can purchase DAI on the network and bridge it to xDai
+ network through the xDai Bridge. See the{' '}
+ official xDai website for more information.
+ >
)}
-
-
- Chequebook Address
-
-
-
+
+ {chequebookAddress && (
+ <>
+
+
+
+
+ >
+ )}
+
)
}
diff --git a/src/pages/status/SetupSteps/DebugConnectionCheck.tsx b/src/pages/status/SetupSteps/DebugConnectionCheck.tsx
index dc2fb95..4fbb64d 100644
--- a/src/pages/status/SetupSteps/DebugConnectionCheck.tsx
+++ b/src/pages/status/SetupSteps/DebugConnectionCheck.tsx
@@ -1,99 +1,87 @@
import { ReactElement, useContext } from 'react'
-import { Typography, Accordion, AccordionSummary, AccordionDetails } from '@material-ui/core/'
import MuiAlert from '@material-ui/lab/Alert'
-import { ExpandMoreSharp } from '@material-ui/icons/'
-import ConnectToHost from '../../../components/ConnectToHost'
import CodeBlockTabs from '../../../components/CodeBlockTabs'
+import ExpandableList from '../../../components/ExpandableList'
+import ExpandableListItem from '../../../components/ExpandableListItem'
+import ExpandableListItemInput from '../../../components/ExpandableListItemInput'
+import ExpandableListItemNote from '../../../components/ExpandableListItemNote'
+import StatusIcon from '../../../components/StatusIcon'
import { Context as SettingsContext } from '../../../providers/Settings'
+import { Context } from '../../../providers/Bee'
-type Props = StatusHookCommon
-
-export default function NodeConnectionCheck({ isOk }: Props): ReactElement | null {
+export default function NodeConnectionCheck(): ReactElement | null {
+ const { status, isLoading } = useContext(Context)
const { setDebugApiUrl, apiDebugUrl } = useContext(SettingsContext)
-
- const changeDebugApiUrl = (
-
- {changeDebugApiUrl}
+
+ Connection to Bee Debug API
+ >
+ }
+ >
+
+ {isOk
+ ? 'The connection to the Bee nodes deug API has been successful'
+ : 'We cannot connect to your nodes debug API. Please check the following to troubleshoot your issue.'}
+
+
-
-
- We cannot connect to your nodes debug API at {apiDebugUrl}. Please
- check the following to troubleshoot your issue.
-
- } aria-controls="panel1a-content" id="panel1a-header">
- Troubleshoot
-
-
-
-
-
Check the status of your node by running the below command to see if your node is running.
-
-
- If your node is running, check your firewall settings to make sure that port 1635 (or your custom
- specified port) is bound to localhost. If your node is not running try executing the below command
- to start your bee node
-
-
- Your debug node API should never be completely open to the internet. If you want to connect
- remotely, make sure your firewall settings are set to only allow specific trusted IP addresses and
- block all other ports. A simple google search for "what is my ip" will show you your
- computers public IP address to allow.
-
-
-
Run the commands to validate your node is running and see the log output.
-
-
- Lastly, check your nodes configuration settings to validate the debug API is enabled and the Cross
- Origin Resource Sharing (CORS) setting is configured to allow your host. Config parameter{' '}
- debug-api-enable must be set to true and{' '}
- cors-allowed-origins must be set to your host domain or IP (you can also use the
- wildcard {"cors-allowed-origins: ['*']"}). If edits are made to the configuration run
- the restart command below for changes to take effect.
-
-
-
-
-
-
-
-
-
+ {!isOk && (
+
+
+
Check the status of your node by running the below command to see if your node is running.
+
+
+ If your node is running, check your firewall settings to make sure that port 1635 (or your custom
+ specified port) is bound to localhost. If your node is not running try executing the below command to
+ start your bee node
+
+
+ Your debug node API should never be completely open to the internet. If you want to connect remotely,
+ make sure your firewall settings are set to only allow specific trusted IP addresses and block all
+ other ports. A simple google search for "what is my ip" will show you your computers public
+ IP address to allow.
+
+
+
Run the commands to validate your node is running and see the log output.
+
+
+ Lastly, check your nodes configuration settings to validate the debug API is enabled and the Cross
+ Origin Resource Sharing (CORS) setting is configured to allow your host. Config parameter{' '}
+ debug-api-enable must be set to true and{' '}
+ cors-allowed-origins must be set to your host domain or IP (you can also use the
+ wildcard {"cors-allowed-origins: ['*']"}). If edits are made to the configuration run the
+ restart command below for changes to take effect.
+
+
+
+ }
+ />
+
+ )}
+
)
}
diff --git a/src/pages/status/SetupSteps/EthereumConnectionCheck.tsx b/src/pages/status/SetupSteps/EthereumConnectionCheck.tsx
index 2c72ca2..6526d8c 100644
--- a/src/pages/status/SetupSteps/EthereumConnectionCheck.tsx
+++ b/src/pages/status/SetupSteps/EthereumConnectionCheck.tsx
@@ -1,34 +1,42 @@
-import type { ReactElement } from 'react'
-import { Typography } from '@material-ui/core/'
-import EthereumAddress from '../../../components/EthereumAddress'
+import { ReactElement, useContext } from 'react'
+import ExpandableList from '../../../components/ExpandableList'
+import ExpandableListItemKey from '../../../components/ExpandableListItemKey'
+import ExpandableListItemNote from '../../../components/ExpandableListItemNote'
+import StatusIcon from '../../../components/StatusIcon'
+import { Context } from '../../../providers/Bee'
-type Props = StatusEthereumConnectionHook
-
-export default function EthereumConnectionCheck({ isOk, nodeAddresses }: Props): ReactElement | null {
- if (isOk) {
- return (
-
- Your Bee node must have access to the xDai blockchain, so that it can interact and deploy your chequebook
- contract. You can run{' '}
-
- your own xDai node
-
- , or use a provider instead - we recommend{' '}
-
- Getblock
-
- . By default, Bee expects a local node at http://localhost:8545. To use a provider instead, simply change the{' '}
- swap-endpoint in your configuration file.
-
+
+ Connection to Blockchain
+ >
+ }
+ >
+
+ {isOk ? (
+ 'Your node is connected to the xDai blockchain'
+ ) : (
+ <>
+ Your Bee node must have access to the xDai blockchain, so that it can interact and deploy your chequebook
+ contract. You can run{' '}
+
+ your own xDai node
+
+ , or use a provider instead - we recommend{' '}
+
+ Getblock
+
+ . By default, Bee expects a local node at http://localhost:8545. To use a provider instead, simply change
+ the swap-endpoint in your configuration file.
+ >
+ )}
+
+ {nodeAddresses?.ethereum && }
+
)
}
diff --git a/src/pages/status/SetupSteps/NodeConnectionCheck.tsx b/src/pages/status/SetupSteps/NodeConnectionCheck.tsx
index 91f4a1d..0cef8c8 100644
--- a/src/pages/status/SetupSteps/NodeConnectionCheck.tsx
+++ b/src/pages/status/SetupSteps/NodeConnectionCheck.tsx
@@ -1,61 +1,61 @@
import { ReactElement, useContext } from 'react'
-import { Typography, Accordion, AccordionSummary, AccordionDetails } from '@material-ui/core/'
-import { ExpandMoreSharp } from '@material-ui/icons/'
-import ConnectToHost from '../../../components/ConnectToHost'
import CodeBlockTabs from '../../../components/CodeBlockTabs'
import { Context as SettingsContext } from '../../../providers/Settings'
+import ExpandableList from '../../../components/ExpandableList'
+import ExpandableListItem from '../../../components/ExpandableListItem'
+import ExpandableListItemNote from '../../../components/ExpandableListItemNote'
+import ExpandableListItemInput from '../../../components/ExpandableListItemInput'
+import StatusIcon from '../../../components/StatusIcon'
+import { Context } from '../../../providers/Bee'
-type Props = StatusHookCommon
-
-export default function NodeConnectionCheck({ isOk }: Props): ReactElement | null {
+export default function NodeConnectionCheck(): ReactElement | null {
const { setApiUrl, apiUrl } = useContext(SettingsContext)
+ const { status, isLoading } = useContext(Context)
+ const isOk = status.apiConnection
return (
-
-
-
- Node API ({apiUrl})
-
-
-
-
- {!isOk && (
-
- We cannot connect to your nodes API at {apiUrl}. Please check the
- following to troubleshoot your issue.
-
- } aria-controls="panel1a-content" id="panel1a-header">
- Troubleshoot
-
-
-
-
-
Check the status of your node by running the below command to see if your node is running.
-
-
- If your node is running, check your firewall settings to make sure that port 1633 (or your custom
- specified port) is exposed to the internet. If your node is not running try executing the below
- command to start your bee node
-
-
-
Run the commands to validate your node is running and see the log output.
-
-
-
-
-
-
- )}
-
-
+
+ Connection to Bee API
+ >
+ }
+ >
+
+ {isOk
+ ? 'The connection to the Bee nodes API has been successful'
+ : 'Could not connect to your Bee nodes API. Please check the troubleshoot below on how you may resolve it.'}
+
+
+ {!isOk && (
+
+
+
Check the status of your node by running the below command to see if your node is running.
+
+
+ If your node is running, check your firewall settings to make sure that port 1633 (or your custom
+ specified port) is exposed to the internet. If your node is not running try executing the below
+ command to start your bee node
+
+
+
Run the commands to validate your node is running and see the log output.
+
+
+ }
+ />
+
+ )}
+
)
}
diff --git a/src/pages/status/SetupSteps/PeerConnection.tsx b/src/pages/status/SetupSteps/PeerConnection.tsx
index 72c21a2..8701c2e 100644
--- a/src/pages/status/SetupSteps/PeerConnection.tsx
+++ b/src/pages/status/SetupSteps/PeerConnection.tsx
@@ -1,43 +1,29 @@
-import type { ReactElement } from 'react'
-import { Typography } from '@material-ui/core/'
+import { ReactElement, useContext } from 'react'
+import ExpandableList from '../../../components/ExpandableList'
+import ExpandableListItemNote from '../../../components/ExpandableListItemNote'
+import TopologyStats from '../../../components/TopologyStats'
+import StatusIcon from '../../../components/StatusIcon'
+import { Context } from '../../../providers/Bee'
-type Props = StatusTopologyHook
-
-export default function PeerConnection({ isOk, topology }: Props): ReactElement | null {
- const peers = (
-