diff --git a/package-lock.json b/package-lock.json index dc46ca48..918df5f1 100644 --- a/package-lock.json +++ b/package-lock.json @@ -4513,7 +4513,6 @@ "resolved": "https://registry.npmjs.org/react-spinners/-/react-spinners-0.13.8.tgz", "integrity": "sha512-3e+k56lUkPj0vb5NDXPVFAOkPC//XyhKPJjvcGjyMNPWsBKpplfeyialP74G7H7+It7KzhtET+MvGqbKgAqpZA==", "requires": {} -<<<<<<< HEAD }, "react-toastify": { "version": "10.0.5", @@ -4523,8 +4522,6 @@ "requires": { "clsx": "^2.1.0" } -======= ->>>>>>> be9db53b45ec1d45ff6af208cda13aa45c8e503b }, "require-directory": { "version": "2.1.1", diff --git a/src/components/CollegePage/CollegePage.css b/src/components/CollegePage/CollegePage.css index a49e3ff3..2ea1435b 100644 --- a/src/components/CollegePage/CollegePage.css +++ b/src/components/CollegePage/CollegePage.css @@ -14,7 +14,7 @@ } .content { - background-color: #5cb6f9; + background-color: rgb(26, 165, 224); width: 50vw; overflow: hidden; position: relative; @@ -169,9 +169,10 @@ margin-bottom: 0px; } .searchCourses { border-radius: 15px; - width: 30vw; + width: 40vw; + margin-left: 5vw; + margin-top: 120px; background-color: #c5d5d4; - color: white; padding: 10px 20px; font-size: 16px; border: none; diff --git a/src/components/Dashboard/Dashboard.jsx b/src/components/Dashboard/Dashboard.jsx index 57402414..911e85ee 100644 --- a/src/components/Dashboard/Dashboard.jsx +++ b/src/components/Dashboard/Dashboard.jsx @@ -43,7 +43,7 @@ const Dashboard = () => { setFilteredColleges(results); }, [searchTerm]); - const handleSignOut = () => { + const handleSignOut = useCallback(() => { signOut(auth) .then(() => { setTimeout(() => { @@ -55,7 +55,7 @@ const Dashboard = () => { className: "toast-message", }); }); - }; + }); const handleCollegeClick = useCallback( (college) => { diff --git a/src/components/ForgotPassword/ForgotPassword.jsx b/src/components/ForgotPassword/ForgotPassword.jsx index 6d138f27..7173b37a 100644 --- a/src/components/ForgotPassword/ForgotPassword.jsx +++ b/src/components/ForgotPassword/ForgotPassword.jsx @@ -9,7 +9,14 @@ function validEmail(email) { /^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/; return re.test(email); } - +function onChangeEvent(event){ + setEmail(event.target.value) + if (!validEmail(event.target.value)) { + setError("**Enter a valid E-mail!"); + } else { + setError(""); + } +} function ForgotPassword() { const [email, setEmail] = useState(); @@ -55,14 +62,7 @@ function ForgotPassword() {