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

@@ -0,0 +1,12 @@
import OrgUserContext from "@app/contexts/orgUserContext";
import { useContext } from "react";
export function userOrgUserContext() {
const context = useContext(OrgUserContext);
if (context === undefined) {
throw new Error(
"useOrgUserContext must be used within a OrgUserProvider"
);
}
return context;
}