mirror of
https://github.com/fosrl/pangolin.git
synced 2026-02-25 06:16:40 +00:00
change user role
This commit is contained in:
11
src/contexts/orgUserContext.ts
Normal file
11
src/contexts/orgUserContext.ts
Normal file
@@ -0,0 +1,11 @@
|
||||
import { GetOrgUserResponse } from "@server/routers/user";
|
||||
import { createContext } from "react";
|
||||
|
||||
interface OrgUserContext {
|
||||
orgUser: GetOrgUserResponse;
|
||||
updateOrgUser: (updateOrgUser: Partial<GetOrgUserResponse>) => void;
|
||||
}
|
||||
|
||||
const OrgUserContext = createContext<OrgUserContext | undefined>(undefined);
|
||||
|
||||
export default OrgUserContext;
|
||||
Reference in New Issue
Block a user