From 4fb54399d42938f3f39b3c0f8d9d136d21563951 Mon Sep 17 00:00:00 2001
From: Subramani E <93091455+subru-37@users.noreply.github.com>
Date: Mon, 23 Sep 2024 18:12:00 +0530
Subject: [PATCH] Fix: Redundant new route removal (#450)
* modal (#446)
* modal
* Update index.jsx
* Update index.jsx
* Update index.jsx
* Update index.jsx
* Update index.jsx
* Update index.jsx
* Update index.jsx
* Update index.jsx
* Update index.jsx
* Fix: prettier error resolution for build
---------
Co-authored-by: Diya Therese Shibu <119161965+Diyashibu@users.noreply.github.com>
---
.eslintrc.js | 4 +-
.github/dependabot.yml | 24 +-
.github/workflows/build.yml | 2 +-
.prettierrc.js | 12 +-
README.md | 1 -
apps/web-admin/components.json | 2 +-
.../events/[eventId]/attributes/index.jsx | 37 +-
.../events/[eventId]/attributes/new/index.jsx | 50 +-
.../[orgId]/events/[eventId]/extras/index.jsx | 38 +-
.../events/[eventId]/extras/new/index.jsx | 52 +-
.../events/[eventId]/participants/index.jsx | 201 +-
.../src/pages/[orgId]/events/index.jsx | 50 +-
.../src/pages/[orgId]/events/new/index.jsx | 51 +-
.../src/pages/[orgId]/members/index.jsx | 35 +-
.../src/pages/[orgId]/members/new/index.jsx | 60 +-
packages/eslint-config-custom/index.js | 14 +-
packages/tsconfig/package.json | 2 +-
packages/tsconfig/tsconfig.json | 25 +-
pnpm-lock.yaml | 6534 ++++++++++++-----
pnpm-workspace.yaml | 4 +-
turbo.json | 29 +-
21 files changed, 5229 insertions(+), 1998 deletions(-)
diff --git a/.eslintrc.js b/.eslintrc.js
index 5b999efa..a2845bfa 100644
--- a/.eslintrc.js
+++ b/.eslintrc.js
@@ -1,10 +1,10 @@
module.exports = {
root: true,
// This tells ESLint to load the config from the package `eslint-config-custom`
- extends: ["custom"],
+ extends: ['custom'],
settings: {
next: {
- rootDir: ["apps/*/"],
+ rootDir: ['apps/*/'],
},
},
};
diff --git a/.github/dependabot.yml b/.github/dependabot.yml
index 8291c1b2..0d96ee23 100644
--- a/.github/dependabot.yml
+++ b/.github/dependabot.yml
@@ -1,18 +1,18 @@
version: 2
updates:
- - package-ecosystem: "npm"
- directory: "/apps/core-admin"
+ - package-ecosystem: 'npm'
+ directory: '/apps/core-admin'
schedule:
- interval: "weekly"
- - package-ecosystem: "npm"
- directory: "/apps/core-auth0-actions"
+ interval: 'weekly'
+ - package-ecosystem: 'npm'
+ directory: '/apps/core-auth0-actions'
schedule:
- interval: "weekly"
- - package-ecosystem: "npm"
- directory: "/apps/web-admin"
+ interval: 'weekly'
+ - package-ecosystem: 'npm'
+ directory: '/apps/web-admin'
schedule:
- interval: "weekly"
- - package-ecosystem: "npm"
- directory: "/"
+ interval: 'weekly'
+ - package-ecosystem: 'npm'
+ directory: '/'
schedule:
- interval: "weekly"
+ interval: 'weekly'
diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml
index c78b692a..ad1f91e8 100644
--- a/.github/workflows/build.yml
+++ b/.github/workflows/build.yml
@@ -28,7 +28,7 @@ jobs:
run: |
curl -X GET ${{ secrets.DEV_CORE_ADMIN_DEPLOY_HOOK }}
curl -X GET ${{ secrets.PROD_CORE_ADMIN_DEPLOY_HOOK }}
-
+
build-and-push-core-auth0-actions:
runs-on: ubuntu-latest
diff --git a/.prettierrc.js b/.prettierrc.js
index 978af73b..b8c51ac6 100644
--- a/.prettierrc.js
+++ b/.prettierrc.js
@@ -1,7 +1,7 @@
module.exports = {
- semi: true,
- trailingComma: 'all',
- singleQuote: true,
- printWidth: 100,
- tabWidth: 2,
- };
\ No newline at end of file
+ semi: true,
+ trailingComma: 'all',
+ singleQuote: true,
+ printWidth: 100,
+ tabWidth: 2,
+};
diff --git a/README.md b/README.md
index b681f71a..0818b19e 100644
--- a/README.md
+++ b/README.md
@@ -1,4 +1,3 @@
-
Techno Event Management
A powerful event management suite.
diff --git a/apps/web-admin/components.json b/apps/web-admin/components.json
index 8c934fc3..9e10273a 100644
--- a/apps/web-admin/components.json
+++ b/apps/web-admin/components.json
@@ -13,4 +13,4 @@
"components": "@/components",
"utils": "@/lib/utils"
}
-}
\ No newline at end of file
+}
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 4da3e386..c9e5d339 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
@@ -1,14 +1,20 @@
import { useRouter } from 'next/router';
import { useEffect, useState } from 'react';
-
-import { Button } from '@chakra-ui/react';
-
+import {
+ Button,
+ Modal,
+ ModalOverlay,
+ ModalContent,
+ ModalHeader,
+ ModalBody,
+ ModalCloseButton,
+ useDisclosure,
+} from '@chakra-ui/react';
import DashboardLayout from '@/layouts/DashboardLayout';
-
import { useFetch } from '@/hooks/useFetch';
import { useAlert } from '@/hooks/useAlert';
-
import DataDisplay from '@/components/DataDisplay';
+import NewAttributeForm from './new';
const columns = [
{ field: 'name', headerName: 'Name', width: 200 },
@@ -23,10 +29,9 @@ export default function Attributes() {
const router = useRouter();
const { orgId, eventId } = router.query;
const showAlert = useAlert();
-
+ const { isOpen, onOpen, onClose } = useDisclosure();
const { loading, get } = useFetch();
- const [event, setEvent] = useState([]);
const [attributes, setAttributes] = useState([]);
useEffect(() => {
@@ -53,12 +58,7 @@ export default function Attributes() {
previousPage={`/organizations/${orgId}/events/${eventId}`}
headerButton={
<>
-