lots of file surgery, it works

This commit is contained in:
2025-07-24 12:08:10 -07:00
parent 2db5514f2c
commit 85160caae0
4 changed files with 62 additions and 47 deletions
+12 -13
View File
@@ -1,23 +1,22 @@
// This Canvas component will be used to dynamically populate
// the main canvas section of the web App with a default state
// of 'DashboardCanvas'
// of 'WidgetCanvas'
import { Box } from "@chakra-ui/react";
import GlobalMapCanvas from "./views/GlobalMapCanvas";
import RegionalMapCanvas from "./views/RegionalMapCanvas";
import VolcanoCanvas from "./views/VolcanoCanvas";
import AdminCanvas from "./views/AdminCanvas";
import { MyDashboardCanvas } from "./views/MyDashboardCanvas";
import { DashboardCanvas } from "./views/DashboardCanvas";
export default function Canvas({ view }) {
return (
<Box height="100%" width="100%">
{view === "widget" && <MyDashboardCanvas />}
{view === "global" && <GlobalMapCanvas />}
{view === "regional" && <RegionalMapCanvas />}
{view === "volcano" && <VolcanoCanvas />}
{view === "admin" && <AdminCanvas />}
</Box>
);
}
return (
<Box height="100%" width="100%">
{view === "widget" && <DashboardCanvas />}
{view === "global" && <GlobalMapCanvas />}
{view === "regional" && <RegionalMapCanvas />}
{view === "volcano" && <VolcanoCanvas />}
{view === "admin" && <AdminCanvas />}
</Box>
);
}