diff --git a/Client/index.html b/Client/index.html index c2198aa5a..3407fb5cd 100644 --- a/Client/index.html +++ b/Client/index.html @@ -2,7 +2,7 @@ - + BlueWave Uptime diff --git a/Client/src/Pages/Auth/Login.jsx b/Client/src/Pages/Auth/Login.jsx index 42e7feb1a..dffc87ab9 100644 --- a/Client/src/Pages/Auth/Login.jsx +++ b/Client/src/Pages/Auth/Login.jsx @@ -1,12 +1,6 @@ import { useState, useEffect } from "react"; import { useNavigate } from "react-router-dom"; -import { - Box, - Divider, - FormControlLabel, - Stack, - Typography, -} from "@mui/material"; +import { Box, Divider, FormControl, Stack, Typography } from "@mui/material"; import { useTheme } from "@emotion/react"; import { credentials } from "../../Validation/validation"; import { login } from "../../Features/Auth/authSlice"; @@ -18,6 +12,7 @@ import Field from "../../Components/Inputs/Field"; import background from "../../assets/Images/background_pattern_decorative.png"; import Logo from "../../assets/icons/bwu-icon.svg?react"; import Mail from "../../assets/icons/mail.svg?react"; +import ArrowBackRoundedIcon from "@mui/icons-material/ArrowBackRounded"; import "./index.css"; @@ -154,6 +149,72 @@ const Login = () => { ); }; + const StepOne = () => { + const submit = (event) => { + event.preventDefault(); + + const { error } = credentials.validate( + { email: form.email }, + { abortEarly: false } + ); + if (error) { + setErrors((prev) => ({ ...prev, email: error.details[0].message })); + createToast({ body: "Invalid email address." }); + } else { + setStep(2); + } + }; + + return ( + <> + + + Log In + Enter your email address + + +
+ + +
+ +