Add professional historian modal with realtime analytics
This commit is contained in:
+14
-4
@@ -1,12 +1,22 @@
|
||||
import { useState } from "react";
|
||||
import { AppShell } from "../components/layout/AppShell";
|
||||
import { DashboardPage } from "../features/dashboard/pages/DashboardPage";
|
||||
import { MeteoPage } from "../features/meteo/pages/MeteoPage";
|
||||
|
||||
export type AppPage = "dashboard" | "meteo";
|
||||
|
||||
function App() {
|
||||
const [activePage, setActivePage] = useState<AppPage>("dashboard");
|
||||
|
||||
return (
|
||||
<AppShell>
|
||||
{({ theme}) => (
|
||||
<DashboardPage theme={theme} />
|
||||
)}
|
||||
<AppShell activePage={activePage} onNavigate={setActivePage}>
|
||||
{({ theme }) =>
|
||||
activePage === "meteo" ? (
|
||||
<MeteoPage theme={theme} />
|
||||
) : (
|
||||
<DashboardPage theme={theme} />
|
||||
)
|
||||
}
|
||||
</AppShell>
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user