feat: remove the last update component (#179)

This commit is contained in:
Vojtech Simetka
2021-08-23 16:00:22 +02:00
committed by GitHub
parent 7f2ff39ec9
commit 56df3a2561
4 changed files with 3 additions and 41 deletions
+2 -9
View File
@@ -33,8 +33,7 @@ const Dashboard = (props: Props): ReactElement => {
const [themeMode, toggleThemeMode] = useState('light')
// FIXME: handle errrors and loading
const { isLoading, lastUpdate, apiHealth, debugApiHealth } = useContext(Context)
const { isLoading, apiHealth, debugApiHealth } = useContext(Context)
useEffect(() => {
const theme = localStorage.getItem('theme')
@@ -57,13 +56,7 @@ const Dashboard = (props: Props): ReactElement => {
return (
<div>
<SideBar
{...props}
themeMode={themeMode}
health={apiHealth}
nodeHealth={debugApiHealth}
lastUpdate={lastUpdate}
/>
<SideBar {...props} themeMode={themeMode} health={apiHealth} nodeHealth={debugApiHealth} />
<NavBar themeMode={themeMode} />
<ErrorBoundary>
<main className={classes.content}>