From d43c6bc0ea61d83407566313230ba39900e817c8 Mon Sep 17 00:00:00 2001 From: Blake Mason Date: Tue, 31 Oct 2023 09:05:08 -0700 Subject: [PATCH] [B] Fix linting errors --- components/auth/buttons/GoogleSSO/Button.tsx | 8 +------- components/auth/dialogs/ForgotPassword/ForgotPassword.tsx | 2 +- components/auth/dialogs/SignUp/SignUp.tsx | 3 +-- contexts/Progress.tsx | 1 - 4 files changed, 3 insertions(+), 11 deletions(-) diff --git a/components/auth/buttons/GoogleSSO/Button.tsx b/components/auth/buttons/GoogleSSO/Button.tsx index d04324a1..9833a969 100644 --- a/components/auth/buttons/GoogleSSO/Button.tsx +++ b/components/auth/buttons/GoogleSSO/Button.tsx @@ -1,6 +1,6 @@ "use client"; -import { GoogleLogin, useGoogleLogin } from "@react-oauth/google"; +import { useGoogleLogin } from "@react-oauth/google"; import { Button } from "@rubin-epo/epo-react-lib"; import { useTranslation } from "react-i18next"; import { useAuthDialogManager } from "@/components/auth/AuthDialogManagerContext"; @@ -54,12 +54,6 @@ export default function SSOButton({ > {t("sign_in.continue_with_google")} - // ); } diff --git a/components/auth/dialogs/ForgotPassword/ForgotPassword.tsx b/components/auth/dialogs/ForgotPassword/ForgotPassword.tsx index 5b303021..6857e891 100644 --- a/components/auth/dialogs/ForgotPassword/ForgotPassword.tsx +++ b/components/auth/dialogs/ForgotPassword/ForgotPassword.tsx @@ -1,7 +1,7 @@ "use client"; import { useState } from "react"; -import { BasicModal, Button, Input } from "@rubin-epo/epo-react-lib"; +import { BasicModal, Input } from "@rubin-epo/epo-react-lib"; import { useAuthDialogManager } from "@/components/auth/AuthDialogManagerContext"; import { useTranslation } from "react-i18next"; import { forgotPassword } from "./actions"; diff --git a/components/auth/dialogs/SignUp/SignUp.tsx b/components/auth/dialogs/SignUp/SignUp.tsx index a4a349bd..ba5c398a 100644 --- a/components/auth/dialogs/SignUp/SignUp.tsx +++ b/components/auth/dialogs/SignUp/SignUp.tsx @@ -1,9 +1,8 @@ "use client"; import { useState } from "react"; -import { BasicModal, Button, Input } from "@rubin-epo/epo-react-lib"; +import { BasicModal, Input } from "@rubin-epo/epo-react-lib"; import { useAuthDialogManager } from "@/components/auth/AuthDialogManagerContext"; -import Submit from "@/components/form/Submit"; import { registerEducator, registerStudent } from "./actions"; import { useTranslation } from "react-i18next"; import * as Styled from "./styles"; diff --git a/contexts/Progress.tsx b/contexts/Progress.tsx index 549c520c..12477740 100644 --- a/contexts/Progress.tsx +++ b/contexts/Progress.tsx @@ -156,7 +156,6 @@ const getDisabledByPage = ( questionsByPage, answeredByPage ) => { - const currentIndex = currentPageNumber - 1; const disabledByPage = []; for (let pageIndex = 0; pageIndex < totalPages; pageIndex++) {