diff --git a/src/app/login/page.tsx b/src/app/login/page.tsx index db07e62..fb40d25 100644 --- a/src/app/login/page.tsx +++ b/src/app/login/page.tsx @@ -1,9 +1,10 @@ "use client"; import { loggedIn, login, logout } from "@/services/authService"; import { RootState } from "@/store/store"; +import Image from "next/image"; import { useEffect, useState } from "react"; import { useDispatch, useSelector } from "react-redux"; -import { useForm, SubmitHandler, get } from "react-hook-form"; +import { useForm, SubmitHandler } from "react-hook-form"; type loginInputs = { email: string; @@ -221,7 +222,6 @@ const LoginForm = () => { Sign up -
@@ -232,7 +232,7 @@ const LoginForm = () => { Sign in
- +
diff --git a/src/app/logout/page.tsx b/src/app/logout/page.tsx index e3a0671..c1daee8 100644 --- a/src/app/logout/page.tsx +++ b/src/app/logout/page.tsx @@ -1,27 +1,31 @@ "use client"; import { logout } from "@/services/authService"; -import { useEffect, useState } from "react"; +import { useState } from "react"; import { useDispatch } from "react-redux"; -function page() { +function Logout() { const dispatch = useDispatch(); - const [status, setStatus] = useState("Loading..."); - useEffect(() => { - logoutUser(); - async function logoutUser() { - try { - await logout(dispatch).then((res) => { - console.log(res); - setStatus("Logged out"); - }); - } catch (error) { - console.error(error); - setStatus("Error logging out"); - throw error; - } + const [status, setStatus] = useState("Press logout below..."); + const handleLogout = async () => { + try { + await logout(dispatch).then((res) => { + console.log(res); + setStatus("Logged out"); + }); + } catch (error) { + console.error(error); + setStatus("Error logging out"); + throw error; } - }, []); - return
Current logout status: {status}
; + }; + return ( +
+ {status}{" "} + +
+ ); } -export default page; +export default Logout; diff --git a/src/app/page.tsx b/src/app/page.tsx index 86ecd4a..3960783 100644 --- a/src/app/page.tsx +++ b/src/app/page.tsx @@ -49,7 +49,7 @@ export default function Home() { platform. Search engine optimisation and cutting-edge user experience design come as standard, along with exceptional reliability, scalability and performance. Plus, friendly support — whenever you need us. -
‍ +

Graphic Design

- Whether you’re building a brand from scratch, or developing new assets for your next campaign, we - have a wealth of experience in developing appointment management systems, logos and brand - identities. We’ll support you through the whole journey, from concept to deliverable. + Whether you're building a brand from scratch, or developing new assets for your next campaign, + we have a wealth of experience in developing appointment management systems, logos and brand + identities. We'll support you through the whole journey, from concept to deliverable.

- diff --git a/src/components/Features.tsx b/src/components/Features.tsx index 96d81e0..baf5195 100644 --- a/src/components/Features.tsx +++ b/src/components/Features.tsx @@ -46,7 +46,7 @@ export const Features = () => { Preconfigured environments
- We detect your environment so you don't need to fiddle with configuration files. + We detect your environment so you don't need to fiddle with configuration files. { Devtools
- We've bundled useful tools to help you get your work done faster and more efficiently. + We've bundled useful tools to help you get your work done faster and more efficiently.