refactor(web): Split AppBar and add tests

This commit is contained in:
Paul Armstrong
2021-02-10 13:21:43 -08:00
committed by Blake Blackshear
parent ddb6127519
commit e729bd52aa
5 changed files with 261 additions and 57 deletions

View File

@@ -2,7 +2,7 @@ import * as Routes from './routes';
import { h } from 'preact';
import ActivityIndicator from './components/ActivityIndicator';
import AsyncRoute from 'preact-async-route';
import AppBar from './components/AppBar';
import AppBar from './AppBar';
import Cameras from './routes/Cameras';
import { Router } from 'preact-router';
import Sidebar from './Sidebar';
@@ -15,7 +15,7 @@ export default function App() {
<DarkModeProvider>
<DrawerProvider>
<div className="w-full">
<AppBar title="Frigate" />
<AppBar />
{status !== FetchStatus.LOADED ? (
<div className="flex flex-grow-1 min-h-screen justify-center items-center">
<ActivityIndicator />