From 4e99bfe1878620769d48532b182692e51c7266ef Mon Sep 17 00:00:00 2001
From: rohan09-raj <rajrohan1914@gmail.com>
Date: Sun, 14 Aug 2022 00:19:58 +0530
Subject: admin panel and api integration

---
 admin/src/pages/VerifiedUsers/VerifiedUsers.jsx | 31 +++++++++++++++++++++++++
 1 file changed, 31 insertions(+)
 create mode 100644 admin/src/pages/VerifiedUsers/VerifiedUsers.jsx

(limited to 'admin/src/pages/VerifiedUsers/VerifiedUsers.jsx')

diff --git a/admin/src/pages/VerifiedUsers/VerifiedUsers.jsx b/admin/src/pages/VerifiedUsers/VerifiedUsers.jsx
new file mode 100644
index 0000000..12d1317
--- /dev/null
+++ b/admin/src/pages/VerifiedUsers/VerifiedUsers.jsx
@@ -0,0 +1,31 @@
+import React from 'react';
+import Accordion from '../../components/Accordion/Accordion';
+import Header from '../../components/Header/Header';
+import {getVerifiedUsers} from '../../services/apiservice';
+import {useQuery} from 'react-query';
+
+import styles from './VerifiedUsers.module.css';
+
+const VerifiedUsers = () => {
+  const {data} = useQuery('verified', getVerifiedUsers);
+
+  return (
+    <div className={styles.verified_users}>
+      <Header subheading='Admin' />
+      <h1 className={styles.verified_users__heading}>Verified Users</h1>
+      <div className='accordion'>
+        {data?.data.length !== 0 ? (
+          data?.data.map((item) => (
+            <div>
+              <Accordion name={item.name} user={item} />
+            </div>
+          ))
+        ) : (
+          <div className={styles.verified_users__nodata}>No Data Found</div>
+        )}
+      </div>
+    </div>
+  );
+};
+
+export default VerifiedUsers;
-- 
cgit 

