diff --git a/src/app/container_page.tsx b/src/app/container_page.tsx index 1e3a010..83a7592 100644 --- a/src/app/container_page.tsx +++ b/src/app/container_page.tsx @@ -1,5 +1,5 @@ import { Footer } from '~/components/Footer'; -import { NavBar } from '~/components/navBar/navBar'; +import NavBar from '~/components/navBar/navBar'; type ContainerPageProps = { children: React.ReactNode; diff --git a/src/app/login/page.tsx b/src/app/login/page.tsx index 860629a..edc16cd 100644 --- a/src/app/login/page.tsx +++ b/src/app/login/page.tsx @@ -1,19 +1,19 @@ -"use client"; -import { useState } from "react"; -import { useAuth } from "@/context/AuthContext"; -import { useRouter } from "next/navigation"; +'use client'; +import { useState } from 'react'; +import { useAuth } from '~/context/AuthContext'; +import { useRouter } from 'next/navigation'; const Login = () => { const router = useRouter(); const { login } = useAuth(); - const [email, setEmail] = useState(""); - const [password, setPassword] = useState(""); + const [email, setEmail] = useState(''); + const [password, setPassword] = useState(''); const handleLogin = async () => { try { await login(email, password); - console.log("Login successful"); - router.push("/protected"); + console.log('Login successful'); + router.push('/protected'); } catch (error) { console.log(error); // Handle login error here if needed. @@ -47,7 +47,7 @@ const Login = () => {