Added more fields to the corporate and showcased them in the UserCard
This commit is contained in:
@@ -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));
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user