diff --git a/src/Mutations/User.tsx b/src/Mutations/User.tsx index d8276d8d..f275fcbb 100644 --- a/src/Mutations/User.tsx +++ b/src/Mutations/User.tsx @@ -6,6 +6,17 @@ export const DROP_TTL_USER = gql` } `; +export const DROP_COORDINATOR = gql` + mutation DropCordinator($id: String!, $reason: String!) { + dropCordinator(id: $id, reason: $reason) + } +`; +export const UNDROP_COORDINATOR = gql` + mutation UndropCordinator($id: String!) { + undropCordinator(id: $id) + } +`; + export const UNDROP_TTL_USER = gql` mutation UnDropTTLUser($email: String!) { undropTTLUser(email: $email) diff --git a/src/components/DataTable.tsx b/src/components/DataTable.tsx index e19c900c..f015f35e 100644 --- a/src/components/DataTable.tsx +++ b/src/components/DataTable.tsx @@ -68,36 +68,33 @@ function DataTable({ data, columns, title, loading, className }: TableData) { return (
@@ -116,15 +113,15 @@ function DataTable({ data, columns, title, loading, className }: TableData) { |
---|
diff --git a/src/components/DropOrUndropUser.tsx b/src/components/DropOrUndropUser.tsx
new file mode 100644
index 00000000..19eb1aa4
--- /dev/null
+++ b/src/components/DropOrUndropUser.tsx
@@ -0,0 +1,118 @@
+import React, { useState } from 'react';
+import { useTranslation } from 'react-i18next';
+import Button from './Buttons';
+
+interface DropOrUndropUserProps {
+ subject: string;
+ title: string;
+ drop?: boolean;
+ loading: boolean;
+ removalReason?: string;
+ setRemovalReason?: React.Dispatch
+
+ );
+}
+
+export default DropOrUndropUser;
diff --git a/src/components/ViewComment.tsx b/src/components/ViewComment.tsx
index 008164ee..b7598d3b 100644
--- a/src/components/ViewComment.tsx
+++ b/src/components/ViewComment.tsx
@@ -39,7 +39,7 @@ function Comment({ remark }: CommentProps) {
{isModalOpen && }
+
+
+
+ + {t(subject)} +++
+
+
+ |