feat: add node connecting status (#603)

This commit is contained in:
Cafe137
2023-01-19 12:05:24 +01:00
committed by GitHub
parent 01838dccd1
commit 90f9f91ddb
5 changed files with 48 additions and 11 deletions
+12
View File
@@ -12,6 +12,18 @@ export default function NodeInfoCard(): ReactElement {
const { status } = useContext(BeeContext)
const navigate = useNavigate()
if (status.all === CheckState.CONNECTING) {
return (
<Card
buttonProps={{ iconType: Settings, children: 'Open node setup', onClick: () => navigate(ROUTES.STATUS) }}
icon={<Globe />}
title="Connecting..."
subtitle="Attempting to establish connection to your Bee node."
status="connecting"
/>
)
}
if (status.all === CheckState.STARTING) {
return (
<Card