Import fix
This commit is contained in:
parent
070e9cc1e5
commit
bd588048dd
1 changed files with 4 additions and 4 deletions
|
@ -2,14 +2,14 @@ import BasicWindow from "../../Components/BasicWindow";
|
|||
import Button from "../../Components/Button";
|
||||
import BackButton from "../../Components/BackButton";
|
||||
import { UserListAdmin } from "../../Components/UserListAdmin";
|
||||
import { User } from "../../Types/Users";
|
||||
import { PublicUser } from "../../Types/goTypes";
|
||||
import { useNavigate } from "react-router-dom";
|
||||
|
||||
function AdminManageUsers(): JSX.Element {
|
||||
//TODO: Change so that it reads users from database
|
||||
const users: User[] = [];
|
||||
const users: PublicUser[] = [];
|
||||
for (let i = 1; i <= 20; i++) {
|
||||
users.push({ id: i, userName: "Example User " + i });
|
||||
users.push({ userId: "id" + i, username: "Example User " + i });
|
||||
}
|
||||
|
||||
const navigate = useNavigate();
|
||||
|
@ -28,7 +28,7 @@ function AdminManageUsers(): JSX.Element {
|
|||
<Button
|
||||
text="Add User"
|
||||
onClick={(): void => {
|
||||
navigate("/admin-add-user");
|
||||
navigate("/adminAddUser");
|
||||
}}
|
||||
type="button"
|
||||
/>
|
||||
|
|
Loading…
Reference in a new issue