diff --git a/client/src/Components/v2/design-elements/ConfirmDialog.tsx b/client/src/Components/v2/design-elements/ConfirmDialog.tsx
deleted file mode 100644
index 1fe4d7b89..000000000
--- a/client/src/Components/v2/design-elements/ConfirmDialog.tsx
+++ /dev/null
@@ -1,105 +0,0 @@
-import { useId } from "react";
-import { Modal, Stack, Typography, Box } from "@mui/material";
-import { useTheme } from "@mui/material/styles";
-import { Button } from "@/Components/v2/inputs";
-import { useTranslation } from "react-i18next";
-
-interface ConfirmDialogProps {
- open: boolean;
- onClose: () => void;
- title: string;
- description?: string;
- onConfirm: () => void;
- confirmText?: string;
- cancelText?: string;
- isLoading?: boolean;
- confirmColor?: "error" | "primary" | "secondary" | "success" | "warning" | "info";
-}
-
-export const ConfirmDialog = ({
- open,
- onClose,
- title,
- description,
- onConfirm,
- confirmText,
- cancelText,
- isLoading = false,
- confirmColor = "error",
-}: ConfirmDialogProps) => {
- const theme = useTheme();
- const { t } = useTranslation();
- const titleId = useId();
- const descriptionId = useId();
-
- return (
- e.stopPropagation()}
- >
-
-
- {title}
-
- {description && (
-
- {description}
-
- )}
-
-
-
-
-
-
- );
-};
diff --git a/client/src/Components/v2/design-elements/index.tsx b/client/src/Components/v2/design-elements/index.tsx
index ebf78c61f..b7b1d484e 100644
--- a/client/src/Components/v2/design-elements/index.tsx
+++ b/client/src/Components/v2/design-elements/index.tsx
@@ -19,4 +19,3 @@ export * from "./Gauge";
export * from "./Tabs";
export * from "./SplitBox";
export * from "./TextLink";
-export * from "./ConfirmDialog";
diff --git a/client/src/Utils/NetworkService.js b/client/src/Utils/NetworkService.js
index d9b151a10..7f6a8e455 100644
--- a/client/src/Utils/NetworkService.js
+++ b/client/src/Utils/NetworkService.js
@@ -374,7 +374,7 @@ class NetworkService {
* @param {Object} config - The configuration object.
* @param {string} config.userId - The ID of the user to be updated.
* @param {Object} config.form - The form data for the user to be updated.
- * @returns {Promise} The response from the axios PUT request.
+ * @returns {Promise} The response from the axios PATCH request.
*
*/
async updateUser(config) {
diff --git a/server/src/routes/authRoute.ts b/server/src/routes/authRoute.ts
index eec6ea11b..97e85d61f 100755
--- a/server/src/routes/authRoute.ts
+++ b/server/src/routes/authRoute.ts
@@ -26,10 +26,10 @@ class AuthRoutes {
this.router.get("/users", verifyJWT, isAllowed(["admin", "superadmin"]), this.authController.getAllUsers);
this.router.get("/users/:userId", verifyJWT, isAllowed(["superadmin"]), this.authController.getUserById);
- this.router.put("/users/:userId", verifyJWT, isAllowed(["superadmin"]), this.authController.editUserById);
- this.router.put("/users/:userId/password", verifyJWT, isAllowed(["superadmin"]), this.authController.editUserPasswordById);
+ this.router.patch("/users/:userId", verifyJWT, isAllowed(["superadmin"]), this.authController.editUserById);
+ this.router.patch("/users/:userId/password", verifyJWT, isAllowed(["superadmin"]), this.authController.editUserPasswordById);
- this.router.put("/user", verifyJWT, upload.single("profileImage"), this.authController.editUser);
+ this.router.patch("/user", verifyJWT, upload.single("profileImage"), this.authController.editUser);
this.router.delete("/user", verifyJWT, this.authController.deleteUser);
}