Merge branch 'frontend' into gruppDM

This commit is contained in:
Davenludd 2024-03-17 21:39:19 +01:00
commit ead1482e50
4 changed files with 53 additions and 30 deletions

View file

@ -15,9 +15,10 @@ function LoginPage(props: {
and if so, redirect to correct page */
function handleSubmit(event: FormEvent<HTMLFormElement>): void {
event.preventDefault();
props.setAuthority((prevAuth) => {
prevAuth = LoginCheck({ username: username, password: password });
return prevAuth;
LoginCheck({
username: username,
password: password,
setAuthority: props.setAuthority,
});
}

View file

@ -14,6 +14,7 @@ function PMProjectMembers(): JSX.Element {
onClick={(): void => {
return;
}}
type={"button"}
/>
</Link>
<Link to="/PM-time-role">
@ -22,6 +23,7 @@ function PMProjectMembers(): JSX.Element {
onClick={(): void => {
return;
}}
type={"button"}
/>
</Link>
<BackButton />