feat: separate info and status page (#183)

* feat: separate info and status page

* chore: remove the detection of step to expand
This commit is contained in:
Vojtech Simetka
2021-08-25 17:41:17 +02:00
committed by GitHub
parent 766fe96d1c
commit 02a7bff733
9 changed files with 306 additions and 353 deletions
+2 -2
View File
@@ -33,7 +33,7 @@ const Dashboard = (props: Props): ReactElement => {
const [themeMode, toggleThemeMode] = useState('light')
const { isLoading, apiHealth, debugApiHealth } = useContext(Context)
const { isLoading, status } = useContext(Context)
useEffect(() => {
const theme = localStorage.getItem('theme')
@@ -56,7 +56,7 @@ const Dashboard = (props: Props): ReactElement => {
return (
<div>
<SideBar {...props} themeMode={themeMode} health={apiHealth} nodeHealth={debugApiHealth} />
<SideBar {...props} themeMode={themeMode} isOk={status.all} />
<NavBar themeMode={themeMode} />
<ErrorBoundary>
<main className={classes.content}>