feat: add starting state to sidebar indicator (#587)

This commit is contained in:
Cafe137
2022-11-22 10:33:38 +01:00
committed by GitHub
parent c3a940c8d7
commit 848e61a7a0
4 changed files with 21 additions and 12 deletions
+2 -2
View File
@@ -9,10 +9,10 @@ import { CheckState, Context as BeeContext } from '../../providers/Bee'
import { ROUTES } from '../../routes'
export default function NodeInfoCard(): ReactElement {
const { debugApiHealth, debugApiReadiness, status } = useContext(BeeContext)
const { status } = useContext(BeeContext)
const navigate = useNavigate()
if (debugApiHealth && !debugApiReadiness) {
if (status.all === CheckState.STARTING) {
return (
<Card
buttonProps={{ iconType: Settings, children: 'Open node setup', onClick: () => navigate(ROUTES.STATUS) }}