@@ -266,6 +263,7 @@ export default function AdminPage() {
)}
+ User
E-mail
-
Password
Register Date
@@ -299,39 +312,51 @@ export default function AdminPage() {
{user.email}
-
- {editUser === index ? (
- {
- setEditUser(-1);
- }}
- value={editedUser}
- onChange={(e) => handleInputChange(e, index)}
- autoFocus
- />
- ) : (
-
- handleEditClick(index, user.password)
- }
- >
- {user.password}
-
- )}
-
{user.register_date.toString()}
- {
- handleDeleteUser(index);
- }}
- />
+
+
{
+ handleDeleteUser(index);
+ }}
+ >
+
+
+
{
+ handleDeleteUser(index);
+ }}
+ >
+ {
+ handleEditUser(index);
+ }}
+ strokeWidth={1.5}
+ />
+
+
))}
diff --git a/src/frontend/src/types/components/index.ts b/src/frontend/src/types/components/index.ts
index 376446a03..12c2f4b3c 100644
--- a/src/frontend/src/types/components/index.ts
+++ b/src/frontend/src/types/components/index.ts
@@ -178,4 +178,30 @@ export type PaginatorComponentType = {
rowsCount?: number[];
totalRowsCount: number;
paginate: (pageIndex: number, pageSize: number) => void;
-};
\ No newline at end of file
+};
+
+export type ConfirmationModalType = {
+ title: string;
+ titleHeader: string;
+ modalContent: string;
+ modalContentTitle: string;
+ cancelText: string;
+ confirmationText: string;
+ children: ReactElement;
+ icon: string;
+ data: any;
+ index: number;
+ onConfirm: (index, data) => void;
+}
+
+export type UserManagementType = {
+ title: string;
+ titleHeader: string;
+ cancelText: string;
+ confirmationText: string;
+ children: ReactElement;
+ icon: string;
+ data?: any;
+ index?: number;
+ onConfirm: (index, data) => void;
+}
\ No newline at end of file
diff --git a/src/frontend/src/utils/styleUtils.ts b/src/frontend/src/utils/styleUtils.ts
index 42fbe8773..04391409c 100644
--- a/src/frontend/src/utils/styleUtils.ts
+++ b/src/frontend/src/utils/styleUtils.ts
@@ -57,6 +57,8 @@ import {
Trash2,
Undo,
Upload,
+ UserMinus2,
+ UserPlus2,
Users2,
Variable,
Wand2,
@@ -275,4 +277,6 @@ export const nodeIconsLucide = {
Upload,
MessageSquare,
MoreHorizontal,
+ UserMinus2,
+ UserPlus2
};