new sidebar for account/settings
This commit is contained in:
@@ -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>
|
||||
);
|
||||
}
|
||||
Reference in New Issue
Block a user