From 612b685e182f207b3529f833d1657dc4d80e2ebe Mon Sep 17 00:00:00 2001 From: vivek kasture Date: Fri, 2 Aug 2024 11:12:54 +0530 Subject: [PATCH] Issue #PS-000 feat: Fixed lint issues --- src/components/ManageUser.tsx | 18 +++++------------- 1 file changed, 5 insertions(+), 13 deletions(-) diff --git a/src/components/ManageUser.tsx b/src/components/ManageUser.tsx index 3fedd43d6..cc8540e9f 100644 --- a/src/components/ManageUser.tsx +++ b/src/components/ManageUser.tsx @@ -22,13 +22,13 @@ import { useEffect } from 'react'; import manageUserStore from '../store/manageUserStore'; import { getMyUserList } from '@/services/MyClassDetailsService'; +import reassignLearnerStore from '@/store/reassignLearnerStore'; import Image from 'next/image'; import profileALT from '../assets/images/Profile.png'; import AddFacilitatorModal from './AddFacilitator'; -import ReassignModal from './ReassignModal'; import DeleteUserModal from './DeleteUserModal'; +import ReassignModal from './ReassignModal'; import SimpleModal from './SimpleModal'; -import reassignLearnerStore from '@/store/reassignLearnerStore'; interface Cohort { cohortId: string; @@ -61,7 +61,7 @@ interface ManageUsersProps { cohortData?: any; } -const manageUsers: React.FC = ({ +const ManageUser: React.FC = ({ reloadState, setReloadState, cohortData, @@ -467,7 +467,6 @@ const manageUsers: React.FC = ({ const handleTeacherFullProfile = (userId: string) => { router.push(`/user-profile/${userId}`); }; - const noop = () => {}; const handleRequestBlockAction = () => { showToastMessage(t('BLOCKS.REASSIGN_BLOCK_REQUESTED'), 'success'); @@ -931,12 +930,5 @@ const manageUsers: React.FC = ({ ); }; -// export async function getStaticProps({ locale }: any) { -// return { -// props: { -// ...(await serverSideTranslations(locale, ['common'])), -// // Will be passed to the page component as props -// }, -// }; -// } -export default manageUsers; + +export default ManageUser;