diff --git a/frontend/src/Components/LoginCheck.tsx b/frontend/src/Components/LoginCheck.tsx index ccf761d..af45d0f 100644 --- a/frontend/src/Components/LoginCheck.tsx +++ b/frontend/src/Components/LoginCheck.tsx @@ -1,30 +1,30 @@ -import { NewUser } from "../Types/Users"; +import { NewUser } from "../Types/goTypes"; function LoginCheck(props: { username: string; password: string }): number { //Example users for testing without backend, remove when using backend const admin: NewUser = { - userName: "admin", + username: "admin", password: "123", }; const pmanager: NewUser = { - userName: "pmanager", + username: "pmanager", password: "123", }; const user: NewUser = { - userName: "user", + username: "user", password: "123", }; //TODO: Compare with db instead when finished - if (props.username === admin.userName && props.password === admin.password) { + if (props.username === admin.username && props.password === admin.password) { return 1; } else if ( - props.username === pmanager.userName && + props.username === pmanager.username && props.password === pmanager.password ) { return 2; } else if ( - props.username === user.userName && + props.username === user.username && props.password === user.password ) { return 3; diff --git a/frontend/src/Components/ProjectListUser.tsx b/frontend/src/Components/ProjectListUser.tsx index 0502159..96eeaff 100644 --- a/frontend/src/Components/ProjectListUser.tsx +++ b/frontend/src/Components/ProjectListUser.tsx @@ -1,5 +1,5 @@ import { Link } from "react-router-dom"; -import { Project } from "../Types/Project"; +import { Project } from "../Types/goTypes"; /** * The props for the ProjectsProps component