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
+2 -2
View File
@@ -1,7 +1,7 @@
import { ReactElement, useContext } from 'react'
import { History } from '../../components/History'
import TroubleshootConnectionCard from '../../components/TroubleshootConnectionCard'
import { Context as BeeContext } from '../../providers/Bee'
import { CheckState, Context as BeeContext } from '../../providers/Bee'
import { defaultUploadOrigin } from '../../providers/File'
import { HISTORY_KEYS } from '../../utils/local-storage'
import { FileNavigation } from './FileNavigation'
@@ -10,7 +10,7 @@ import { UploadArea } from './UploadArea'
export function UploadLander(): ReactElement {
const { status } = useContext(BeeContext)
if (!status.all) return <TroubleshootConnectionCard />
if (status.all === CheckState.ERROR) return <TroubleshootConnectionCard />
return (
<>