Map view for results

This commit is contained in:
Guntis Smaukstelis
2023-08-07 23:25:35 +03:00
parent 4c9af88859
commit 5ce297e96a
10 changed files with 198 additions and 42 deletions
+9 -2
View File
@@ -7,12 +7,19 @@ import { FileManager } from './fileManager/FileManager';
console.log("env:", import.meta.env.MODE);
console.log("api host:", import.meta.env.VITE_API_HOST);
type Section = "aggregator" | "fileManager";
type Section = "aggregator" | "mapView" | "fileManager";
const App: Component = () => {
const [getSection, setSection] = createSignal<Section>("aggregator");
const section = () => getSection() === "aggregator" ? <Aggregator /> : <FileManager />;
const section = () => {
switch(getSection()) {
case "fileManager": return <FileManager />;
case "aggregator":
default:
return <Aggregator />;
}
}
return (
<div class={styles.App}>