+
techno
-
+
+
+
-
+
+
@@ -72,9 +105,9 @@ const Sidebar = ({ isOpen, onClose }) => {
onClick={handleLogout}
isLoading={loading}
loadingText="Please Wait"
- width="100%"
+ //width="100%"
>
- Logout
+
@@ -119,4 +152,42 @@ const SidebarContents = () => {
);
};
+const SideBarTree = () => {
+ const router = useRouter();
+
+ return (
+
+
+
+ );
+};
+
+const AccountLoggedIn = () => {
+ // const [open,setOpen] = useState(false);
+
+ //const handleClick = () =>{
+ //setOpen(!open);
+ //}
+ return (
+
+
+
+
+
+
+ You are logged in as:
+
+
+
+ );
+};
+
export default Sidebar;
diff --git a/apps/web-admin/src/pages/organizations/[orgId]/index.jsx b/apps/web-admin/src/pages/organizations/[orgId]/index.jsx
index 36164a06..17587e6b 100644
--- a/apps/web-admin/src/pages/organizations/[orgId]/index.jsx
+++ b/apps/web-admin/src/pages/organizations/[orgId]/index.jsx
@@ -4,11 +4,17 @@ import { Box, Button, Flex, Text } from '@chakra-ui/react';
import DashboardLayout from '@/layouts/DashboardLayout';
+import { FiArrowLeftCircle } from 'react-icons/fi';
+import ItemCard from '@/components/ItemCard';
export default function Organization() {
const router = useRouter();
const { orgId } = router.query;
+ const children = [
+ { id: 0, section: 'events', path: '/events', thumb: '' },
+ { id: 1, section: 'members', path: '/members', thumb: '' },
+ ];
return (
-
- {orgId}
-
+
+ {
+ router.back();
+ }}
+ >
+
+
+
+ {orgId}
+
+
-
+
+
+ {children.map((child) => {
+ return (
+ {
+ router.push(`/organizations/${orgId}/${child.path}`);
+ }}
+ >
+
+
+ );
+ })}
+
+ {/*
-
+ */}
+
);
diff --git a/apps/web-admin/src/pages/organizations/index.jsx b/apps/web-admin/src/pages/organizations/index.jsx
index 5c3e491b..3df40fc8 100644
--- a/apps/web-admin/src/pages/organizations/index.jsx
+++ b/apps/web-admin/src/pages/organizations/index.jsx
@@ -26,11 +26,12 @@ const MuiTheme = createTheme({});
import DashboardLayout from '@/layouts/DashboardLayout';
import { useEffect, useState } from 'react';
-import { purple } from '@mui/material/colors';
+import { FiArrowLeftCircle } from 'react-icons/fi';
+
+import ItemCard from '@/components/ItemCard';
export default function Organizations() {
const router = useRouter();
-
const { orgId } = router.query;
const { loading, get } = useFetch();
@@ -74,24 +75,91 @@ export default function Organizations() {
justifyContent="center"
gap={8}
>
-