change user role

This commit is contained in:
Milo Schwartz 2024-11-10 21:19:41 -05:00
parent e141263b7e
commit 1a3d7705d9
No known key found for this signature in database
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;
}