Added more fields to the corporate and showcased them in the UserCard

This commit is contained in:
Tiago Ribeiro
2023-11-13 19:27:11 +00:00
parent 261ba74105
commit 6056735c72
8 changed files with 127 additions and 9 deletions

View File

@@ -10,7 +10,7 @@ export default function useUsers() {
const getData = () => {
setIsLoading(true);
axios
.get<User[]>("/api/users/list")
.get<User[]>("/api/users/list", {headers: {page: "register"}})
.then((response) => setUsers(response.data))
.finally(() => setIsLoading(false));
};