diff --git a/src/components/Homepage/Founders/Founders.js b/src/components/Homepage/Founders/Founders.js index fffb6da..948d490 100644 --- a/src/components/Homepage/Founders/Founders.js +++ b/src/components/Homepage/Founders/Founders.js @@ -1,6 +1,7 @@ -import React from 'react'; +import React from "react"; import "./Founders.css"; -import Founder from "./Founder/Founder" +import Founder from "./Founder/Founder"; +import { Link } from "react-router-dom"; const Founders = () => { return ( @@ -30,13 +31,17 @@ const Founders = () => { />
- In our final year of university, we noticed that business' recruitment strategies were failing to reach students in an effective way. So we set out to find a solution, which led us to Groundworks. Our way to revolutionise how companies connect with students worldwide. + In our final year of university, we noticed that business' recruitment + strategies were failing to reach students in an effective way. So we set + out to find a solution, which led us to Groundworks. Our way to + revolutionise how companies connect with students worldwide.
- + + + + - ) -} + ); +}; export default Founders; diff --git a/src/components/LoginRegister/LoginPortal/LoginPortal.js b/src/components/LoginRegister/LoginPortal/LoginPortal.js index d7d3987..20a6de1 100644 --- a/src/components/LoginRegister/LoginPortal/LoginPortal.js +++ b/src/components/LoginRegister/LoginPortal/LoginPortal.js @@ -1,6 +1,6 @@ import React, { useState, useContext } from "react"; import "./LoginPortal.css"; -import LoginContext from './LoginContext'; +import LoginContext from "./LoginContext"; const LoginPortal = () => { const [newEmail, setEmail] = useState(""); @@ -11,10 +11,12 @@ const LoginPortal = () => { console.log(details); console.log(newEmail, newPassword); - const [details, setDetails] = useContext(LoginContext); //moved inside submit function + const [details, setDetails] = useContext(LoginContext); //moved inside submit function - setDetails(details => [{email: newEmail, password: newPassword}]) - console.log(details) + // props.history.push("/StudentDashboard"); + + setDetails(details => [{ email: newEmail, password: newPassword }]); + console.log(details); }; return ( diff --git a/src/components/LoginRegister/RegisterPortal/RegisterPortal.js b/src/components/LoginRegister/RegisterPortal/RegisterPortal.js index 6dc976e..37f4f4f 100644 --- a/src/components/LoginRegister/RegisterPortal/RegisterPortal.js +++ b/src/components/LoginRegister/RegisterPortal/RegisterPortal.js @@ -34,6 +34,9 @@ const RegisterPortal = () => { } }; addRegister(); + + // props.history.push("/StudentDashboard"); + setData({ userName: "", email: "", diff --git a/src/components/Navbar/NavBar.js b/src/components/Navbar/NavBar.js index 64984ce..8d52e53 100644 --- a/src/components/Navbar/NavBar.js +++ b/src/components/Navbar/NavBar.js @@ -6,13 +6,15 @@ const NavBar = () => { return (