Skip to content

Commit

Permalink
lint fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
jackavh committed May 15, 2024
1 parent 605e369 commit 70a2694
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion frontend/src/app/admin/layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

import { usePathname } from "next/navigation";

import { MyFirebaseProvider } from "./util/firebase-providers";
import { MyFirebaseProvider } from "./firebase/reactfireProvider";

import HeaderBarSpace from "@/components/HeaderBarSpace";
import NavigationBar from "@/components/NavigationBar";
Expand Down
4 changes: 2 additions & 2 deletions frontend/src/components/admin/ForgotPassword.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,10 @@ const ForgotPassword = ({ setForgotPass }: ForgotPasswordProps) => {

const auth = useFirebase();

const isValidEmail = (email: string) => {
const isValidEmail = (_email: string) => {
// Regular expression to validate email format
const emailRegex = /^[^\s@]+@[^\s@]+\.[^\s@]+$/;
return emailRegex.test(email);
return emailRegex.test(_email);
};

const handleSubmit = (e: React.FormEvent) => {
Expand Down
4 changes: 2 additions & 2 deletions frontend/src/components/admin/LoginForm.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@
import { useRouter } from "next/navigation";
import React, { Dispatch, SetStateAction, useState } from "react";

import styles from "./LoginForm.module.css";

import { firebaseSignIn } from "@/app/admin/firebase/firebase";
import { useFirebase } from "@/app/admin/firebase/firebaseProvider";

import styles from "./LoginForm.module.css";

type LoginFormProps = {
setForgotPass: Dispatch<SetStateAction<boolean>>;
};
Expand Down

0 comments on commit 70a2694

Please sign in to comment.