Skip to content

Commit

Permalink
fixed letter-casing
Browse files Browse the repository at this point in the history
  • Loading branch information
Jonchao committed Mar 19, 2024
1 parent 2b588ce commit 625763a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
5 changes: 2 additions & 3 deletions pages/login.jsx
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
import { Button, Input } from "@nextui-org/react";
import Link from "next/link";
import { useState, useMemo } from "react";
import Oauth2 from "@/components/auth/oauth2";
import Oauth2 from "@/components/auth/Oauth2";
import { useRouter } from "next/router";
import { EyeFilledIcon, EyeSlashFilledIcon } from "@/icons";
import useAuthStatus from "@/hooks/useAuthStatus";
import { login } from "@/utils/firebaseAuth";

export default function Login() {
Expand All @@ -31,7 +30,7 @@ export default function Login() {
setIsLoading(true);
try {
await login(email, password);
router.replace("/")
router.replace("/");
} catch (error) {
console.error("Error logging in:", error);
setLoginError(true);
Expand Down
2 changes: 1 addition & 1 deletion pages/signup.jsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { Button, Input } from "@nextui-org/react";
import Link from "next/link";
import { useState, useMemo } from "react";
import Oauth2 from "@/components/auth/oauth2";
import Oauth2 from "@/components/auth/Oauth2";
import { EyeFilledIcon, EyeSlashFilledIcon } from "@/icons";
import useUserActivity from "@/hooks/useUserActivity";
import { useRouter } from "next/router";
Expand Down

0 comments on commit 625763a

Please sign in to comment.