some small changes

+ removed sliding animation from widgets
+ added form fields to Alert Level widget
This commit is contained in:
2025-08-05 17:12:59 -07:00
parent 39ca605fbd
commit 4fb2f7eabe
6 changed files with 36 additions and 12 deletions
+4 -3
View File
@@ -6,14 +6,15 @@ import Account from "./views/Account"
import Settings from "./views/Settings"
import Home from "./views/Home";
import { DASHBOARD_VIEWS } from "@/constants/viewKeys";
import { chakra } from "@chakra-ui/react";
export default function Canvas({...props}) {
const { view } = props;
return (
<>
<chakra.div width="100%">
{/* Check if view is a tab inside the Canvas Header */}
{ DASHBOARD_VIEWS.includes(view) && (
<Home width="100%" height="100%" {...props}/>
<Home {...props}/>
)}
{view === "global" && <GlobalMap />}
{view === "regional" && <RegionalMap />}
@@ -21,6 +22,6 @@ export default function Canvas({...props}) {
{view === "admin" && <Admin />}
{view === "account" && <Account />}
{view === "settings" && <Settings />}
</>
</chakra.div>
);
}