From 11071451a3a1aa0a4c964578e89acf2c201d1145 Mon Sep 17 00:00:00 2001
From: J ATULYA <109218299+jatulya@users.noreply.github.com>
Date: Fri, 13 Dec 2024 11:24:18 +0530
Subject: [PATCH] Events Navbar persistent (#579)
---
.../events/[eventId]/attributes/index.jsx | 4 +-
.../[orgId]/events/[eventId]/extras/index.jsx | 2 +
.../pages/[orgId]/events/[eventId]/index.jsx | 9 +-
.../events/[eventId]/navigationmenu.jsx | 91 +++++++++++++++++++
.../[eventId]/participants/check-in/index.jsx | 4 +
.../events/[eventId]/participants/index.jsx | 2 +
6 files changed, 108 insertions(+), 4 deletions(-)
create mode 100644 apps/web-admin/src/pages/[orgId]/events/[eventId]/navigationmenu.jsx
diff --git a/apps/web-admin/src/pages/[orgId]/events/[eventId]/attributes/index.jsx b/apps/web-admin/src/pages/[orgId]/events/[eventId]/attributes/index.jsx
index dca351ac..369b7175 100644
--- a/apps/web-admin/src/pages/[orgId]/events/[eventId]/attributes/index.jsx
+++ b/apps/web-admin/src/pages/[orgId]/events/[eventId]/attributes/index.jsx
@@ -105,6 +105,7 @@ import { useAlert } from '@/hooks/useAlert';
import DataDisplay from '@/components/DataDisplay';
import NewAttributeForm from './new';
import useWrapper from '@/hooks/useWrapper';
+import NavigationMenu from '../navigationmenu';
const columns = [
{ field: 'name', headerName: 'Name', width: 200 },
@@ -149,12 +150,13 @@ export default function Attributes() {
headerButton={
<>
>
}
debugInfo={JSON.stringify(attributes)}
>
+
+
-
))}
-
+ */}
+
+
- Total Participants:{' '}
+ Participants:{' '}
{event.numberOfParticipants}
diff --git a/apps/web-admin/src/pages/[orgId]/events/[eventId]/navigationmenu.jsx b/apps/web-admin/src/pages/[orgId]/events/[eventId]/navigationmenu.jsx
new file mode 100644
index 00000000..5b28c814
--- /dev/null
+++ b/apps/web-admin/src/pages/[orgId]/events/[eventId]/navigationmenu.jsx
@@ -0,0 +1,91 @@
+/*
+ // the idea with menu
+import { Menu, MenuButton, MenuList, MenuItem, Button } from '@chakra-ui/react';
+import { ChevronDownIcon } from '@chakra-ui/icons';
+import { useRouter } from 'next/router';
+
+const NavigationMenu = ({ orgId, eventId }) => {
+ const router = useRouter();
+ const menuLabels = ['Participants', 'Participants Check In', 'Attributes', 'Extras'];
+ console.log("navigation menu loaded")
+ return (
+ <>
+
+ >
+ );
+};*/
+
+
+const NavigationMenu = ({orgId, eventId}) => {
+ return (
+
+
+ {['participants', 'check-in', 'attributes', 'extras'].map((tab) => (
+
+ ))}
+
+
+
+ {['participants', 'check-in', 'attributes', 'extras'].map((tab) => (
+
+ ))}
+
+
+ )
+}
+export default NavigationMenu;
\ No newline at end of file
diff --git a/apps/web-admin/src/pages/[orgId]/events/[eventId]/participants/check-in/index.jsx b/apps/web-admin/src/pages/[orgId]/events/[eventId]/participants/check-in/index.jsx
index bb22e16e..9a405e58 100644
--- a/apps/web-admin/src/pages/[orgId]/events/[eventId]/participants/check-in/index.jsx
+++ b/apps/web-admin/src/pages/[orgId]/events/[eventId]/participants/check-in/index.jsx
@@ -11,6 +11,8 @@ import { useAlert } from '@/hooks/useAlert';
import { useFetch } from '@/hooks/useFetch';
import useWrapper from '@/hooks/useWrapper';
+import NavigationMenu from '../../navigationmenu';
+
const columns = [
{ field: 'firstName', headerName: 'First Name', width: 200 },
{ field: 'lastName', headerName: 'Last Name', width: 200 },
@@ -95,10 +97,12 @@ export default function ParticipantsCheckIn() {
Open Scanner
+ {/* */}
>
}
debugInfo={participantsCheckIn}
>
+
+