Fixed so that it uses new type
This commit is contained in:
parent
d1be752ac3
commit
8250c92694
1 changed files with 3 additions and 3 deletions
|
@ -1,5 +1,5 @@
|
|||
import { Dispatch, useEffect } from "react";
|
||||
import { PublicUser } from "../Types/goTypes";
|
||||
import { UserProjectMember } from "../Types/goTypes";
|
||||
import { api } from "../API/API";
|
||||
|
||||
/**
|
||||
|
@ -12,9 +12,9 @@ import { api } from "../API/API";
|
|||
*/
|
||||
function GetUsersInProject(props: {
|
||||
projectName: string;
|
||||
setUsersProp: Dispatch<React.SetStateAction<PublicUser[]>>;
|
||||
setUsersProp: Dispatch<React.SetStateAction<UserProjectMember[]>>;
|
||||
}): void {
|
||||
const setUsers: Dispatch<React.SetStateAction<PublicUser[]>> =
|
||||
const setUsers: Dispatch<React.SetStateAction<UserProjectMember[]>> =
|
||||
props.setUsersProp;
|
||||
useEffect(() => {
|
||||
const fetchUsers = async (): Promise<void> => {
|
||||
|
|
Loading…
Add table
Reference in a new issue