fix: add troubleshooting checks (#435)

* fix: add troubleshooting checks

* feat: add node warning state
This commit is contained in:
Vojtech Simetka
2022-06-24 14:03:20 +02:00
committed by GitHub
parent 4cd580ca7f
commit a756eedc49
4 changed files with 57 additions and 22 deletions
+5
View File
@@ -19,9 +19,12 @@ import { ExportFeedDialog } from '../../feeds/ExportFeedDialog'
import { ImportFeedDialog } from '../../feeds/ImportFeedDialog'
import { AccountNavigation } from '../AccountNavigation'
import { Header } from '../Header'
import TroubleshootConnectionCard from '../../../components/TroubleshootConnectionCard'
import { CheckState, Context as BeeContext } from '../../../providers/Bee'
export function AccountFeeds(): ReactElement {
const { identities, setIdentities } = useContext(IdentityContext)
const { status } = useContext(BeeContext)
const navigate = useNavigate()
@@ -62,6 +65,8 @@ export function AccountFeeds(): ReactElement {
setShowDelete(true)
}
if (status.all === CheckState.ERROR) return <TroubleshootConnectionCard />
return (
<>
<Header />