From 11ad5036c75cf935ade4278c330a5a10dcb000ab Mon Sep 17 00:00:00 2001 From: rishav-jha-mech Date: Sat, 28 Oct 2023 00:31:17 +0530 Subject: [PATCH] Linting issues fixed --- src/screens/ForgotPassword/ForgotPassword.tsx | 8 ++------ .../OrganizationDashboard/OrganizationDashboard.test.tsx | 1 - 2 files changed, 2 insertions(+), 7 deletions(-) diff --git a/src/screens/ForgotPassword/ForgotPassword.tsx b/src/screens/ForgotPassword/ForgotPassword.tsx index 3d637f287d..10b4c4db0b 100644 --- a/src/screens/ForgotPassword/ForgotPassword.tsx +++ b/src/screens/ForgotPassword/ForgotPassword.tsx @@ -8,17 +8,15 @@ import { FORGOT_PASSWORD_MUTATION, GENERATE_OTP_MUTATION, } from 'GraphQl/Mutations/mutations'; -import { ReactComponent as TalawaLogo } from 'assets/svgs/talawa.svg'; import { ReactComponent as KeyLogo } from 'assets/svgs/key.svg'; +import ArrowRightAlt from '@mui/icons-material/ArrowRightAlt'; import Loader from 'components/Loader/Loader'; import { Form } from 'react-bootstrap'; import Button from 'react-bootstrap/Button'; import { useTranslation } from 'react-i18next'; import { errorHandler } from 'utils/errorHandler'; import styles from './ForgotPassword.module.css'; -import { style } from '@mui/system'; -import ArrowRightAlt from '@mui/icons-material/ArrowRightAlt'; const ForgotPassword = (): JSX.Element => { const { t } = useTranslation('translation', { @@ -37,9 +35,7 @@ const ForgotPassword = (): JSX.Element => { confirmNewPassword: '', }); - const [otp, { loading: otpLoading, error }] = useMutation( - GENERATE_OTP_MUTATION - ); + const [otp, { loading: otpLoading }] = useMutation(GENERATE_OTP_MUTATION); const [forgotPassword, { loading: forgotPasswordLoading }] = useMutation( FORGOT_PASSWORD_MUTATION ); diff --git a/src/screens/OrganizationDashboard/OrganizationDashboard.test.tsx b/src/screens/OrganizationDashboard/OrganizationDashboard.test.tsx index 6d4e3a286e..f1560ee4f0 100644 --- a/src/screens/OrganizationDashboard/OrganizationDashboard.test.tsx +++ b/src/screens/OrganizationDashboard/OrganizationDashboard.test.tsx @@ -14,7 +14,6 @@ import i18nForTest from 'utils/i18nForTest'; import dayjs from 'dayjs'; import { toast } from 'react-toastify'; import userEvent from '@testing-library/user-event'; -import { debug } from 'jest-preview'; async function wait(ms = 100): Promise { await act(() => {