Merge branch 'sidebar/account-sidebar' into 'main'

new sidebar for account/settings

See merge request vkuchenik/website-framework!62
This commit is contained in:
2025-08-12 21:22:40 +00:00
5 changed files with 44 additions and 13 deletions
+4
View File
@@ -7,6 +7,8 @@ import Settings from "./views/Settings"
import Home from "./views/Home";
import { DASHBOARD_VIEWS } from "@/constants/viewKeys";
import { chakra } from "@chakra-ui/react";
import Personal from "./views/Personal";
import Security from "./views/Security";
export default function Canvas({...props}) {
const { view } = props;
@@ -22,6 +24,8 @@ export default function Canvas({...props}) {
{view === "admin" && <Admin />}
{view === "account" && <Account />}
{view === "settings" && <Settings />}
{view === "personal" && <Personal />}
{view === "security" && <Security />}
</chakra.div>
);
}
@@ -0,0 +1,9 @@
import { Box } from "@chakra-ui/react";
export default function Personal() {
return (
<Box color="white" bg="tomato">
Hello World
</Box>
);
}
@@ -0,0 +1,9 @@
import { Box } from "@chakra-ui/react";
export default function Security() {
return (
<Box color="white" bg="tomato">
Heya
</Box>
);
}