change user role

This commit is contained in:
Milo Schwartz
2024-11-10 21:19:41 -05:00
parent e141263b7e
commit 1a3d7705d9
14 changed files with 320 additions and 306 deletions

View File

@@ -17,8 +17,8 @@ import { useUserContext } from "@app/hooks/useUserContext";
import api from "@app/api";
import { useOrgContext } from "@app/hooks/useOrgContext";
import { useToast } from "@app/hooks/useToast";
import ManageUserForm from "./ManageUserForm";
import Link from "next/link";
import { useRouter } from "next/navigation";
export type UserRow = {
id: string;
@@ -39,6 +39,8 @@ export default function UsersTable({ users: u }: UsersTableProps) {
const [users, setUsers] = useState<UserRow[]>(u);
const router = useRouter();
const user = useUserContext();
const { org } = useOrgContext();
const { toast } = useToast();