diff --git a/client/src/components/layout/Canvas/Canvas.jsx b/client/src/components/layout/Canvas/Canvas.jsx index bfdf7dd..a527aa8 100644 --- a/client/src/components/layout/Canvas/Canvas.jsx +++ b/client/src/components/layout/Canvas/Canvas.jsx @@ -1,22 +1,24 @@ // This Canvas component will be used to dynamically populate // the main canvas section of the web App with a default state // of 'WidgetCanvas' -import { useState } from "react"; + import { Box } from "@chakra-ui/react"; import CanvasHeader from "./CanvasHeader"; import WidgetCanvas from "./views/WidgetCanvas"; -// import MapCanvas from "./views/MapCanvas"; -// import AdminCanvas from "./views/AdminCanvas"; +import GlobalMapCanvas from "./views/GlobalMapCanvas"; +import RegionalMapCanvas from "./views/RegionalMapCanvas"; +import VolcanoCanvas from "./views/VolcanoCanvas"; +import AdminCanvas from "./views/AdminCanvas"; export default function Canvas({ view }) { - // const [view, setView] = useState("widget"); - return ( {view === "widget" && } - {/* {view === "map" && } */} - {/* {view === "admin" && } */} + {view === "global" && } + {view === "regional" && } + {view === "volcano" && } + {view === "admin" && } ); } diff --git a/client/src/components/layout/Canvas/views/AdminCanvas.jsx b/client/src/components/layout/Canvas/views/AdminCanvas.jsx index e69de29..5cbb749 100644 --- a/client/src/components/layout/Canvas/views/AdminCanvas.jsx +++ b/client/src/components/layout/Canvas/views/AdminCanvas.jsx @@ -0,0 +1,24 @@ +import { Box, Text } from '@chakra-ui/react'; + +export default function AdminCanvas() { + return ( + + + + Admin Canvas coming soon! + + + + ); +} \ No newline at end of file diff --git a/client/src/components/layout/Canvas/views/GlobalMapCanvas.jsx b/client/src/components/layout/Canvas/views/GlobalMapCanvas.jsx new file mode 100644 index 0000000..223f81d --- /dev/null +++ b/client/src/components/layout/Canvas/views/GlobalMapCanvas.jsx @@ -0,0 +1,24 @@ +import { Box, Text } from '@chakra-ui/react'; + +export default function GlobalMapCanvas() { + return ( + + + + Global Map Canvas coming soon! + + + + ); +} \ No newline at end of file diff --git a/client/src/components/layout/Canvas/views/MapCanvas.jsx b/client/src/components/layout/Canvas/views/MapCanvas.jsx deleted file mode 100644 index e69de29..0000000 diff --git a/client/src/components/layout/Canvas/views/RegionalMapCanvas.jsx b/client/src/components/layout/Canvas/views/RegionalMapCanvas.jsx new file mode 100644 index 0000000..7bd3ef7 --- /dev/null +++ b/client/src/components/layout/Canvas/views/RegionalMapCanvas.jsx @@ -0,0 +1,26 @@ +import { Box, Text } from '@chakra-ui/react'; + +export default function RegionalMapCanvas() { + return ( + + + + Regional Map Canvas coming soon! + + + + ); +} \ No newline at end of file diff --git a/client/src/components/layout/Canvas/views/VolcanoCanvas.jsx b/client/src/components/layout/Canvas/views/VolcanoCanvas.jsx new file mode 100644 index 0000000..ab510f5 --- /dev/null +++ b/client/src/components/layout/Canvas/views/VolcanoCanvas.jsx @@ -0,0 +1,26 @@ +import { Box, Text } from '@chakra-ui/react'; + +export default function VolcanoCanvas() { + return ( + + + + Volcano Canvas coming soon! + + + + ); +} \ No newline at end of file