summaryrefslogtreecommitdiff
path: root/admin/src/pages/EnrollmentRequests/EnrollmentRequests.jsx
diff options
context:
space:
mode:
Diffstat (limited to 'admin/src/pages/EnrollmentRequests/EnrollmentRequests.jsx')
-rw-r--r--admin/src/pages/EnrollmentRequests/EnrollmentRequests.jsx9
1 files changed, 8 insertions, 1 deletions
diff --git a/admin/src/pages/EnrollmentRequests/EnrollmentRequests.jsx b/admin/src/pages/EnrollmentRequests/EnrollmentRequests.jsx
index 22eb2c9..4ae5a85 100644
--- a/admin/src/pages/EnrollmentRequests/EnrollmentRequests.jsx
+++ b/admin/src/pages/EnrollmentRequests/EnrollmentRequests.jsx
@@ -10,6 +10,7 @@ import {
import {useQuery, useMutation} from 'react-query';
import {useNavigate} from 'react-router-dom';
import BackButton from '../../components/BackButton/BackButton';
+import {sendMessage} from '../../services/apiservice';
import styles from './EnrollmentRequests.module.css';
@@ -28,6 +29,10 @@ const EnrollmentRequests = () => {
},
});
+ const setConfirm = useMutation((payload) => {
+ sendMessage(payload);
+ });
+
return (
<div className={styles.unverified_users}>
<Header subheading='Admin' />
@@ -46,7 +51,9 @@ const EnrollmentRequests = () => {
<Button
title='Reject'
color='red'
- onClick={() => deleteUse.mutate(item._id)}
+ onClick={() => {
+ deleteUse.mutate(item._id);
+ }}
/>
</div>
))