feat: add starting state to sidebar indicator (#587)
This commit is contained in:
@@ -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) }}
|
||||
|
||||
Reference in New Issue
Block a user