From fcc4c3374d85b33755f852bcc559db0a8eb5115a Mon Sep 17 00:00:00 2001
From: Blaster4385 <venkateshchaturvedi12@gmail.com>
Date: Thu, 25 Aug 2022 11:44:08 +0530
Subject: Misc changes and add more translation

---
 admin/src/pages/UnverifiedUsers/UnverifiedUsers.jsx | 14 ++++++++++++--
 1 file changed, 12 insertions(+), 2 deletions(-)

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

diff --git a/admin/src/pages/UnverifiedUsers/UnverifiedUsers.jsx b/admin/src/pages/UnverifiedUsers/UnverifiedUsers.jsx
index 67de506..0c3a57d 100644
--- a/admin/src/pages/UnverifiedUsers/UnverifiedUsers.jsx
+++ b/admin/src/pages/UnverifiedUsers/UnverifiedUsers.jsx
@@ -10,13 +10,23 @@ import {
 import {useQuery, useMutation} from 'react-query';
 
 import styles from './UnverifiedUsers.module.css';
+import Spinner from '../../components/Spinner/Spinner';
 
 const UnverifiedUsers = () => {
-  const {data} = useQuery('unverified', getUnverifiedUsers);
+  const {data, isLoading, isError} = useQuery('unverified', getUnverifiedUsers);
   const deleteUse = useMutation((id) => deleteUser(id));
   const updateUse = useMutation((id) => updateUser(id, {verified: true}));
-
+  
   useEffect(() => {}, [data]);
+  
+  if (isLoading) {
+    return <Spinner heading='Admin' />
+  }
+
+  if (isError) {
+    return <div>Error</div>
+  }
+
 
   return (
     <div className={styles.unverified_users}>
-- 
cgit 

