mirror of
https://github.com/fosrl/pangolin.git
synced 2026-05-11 14:54:21 +00:00
✨ update policy access control
This commit is contained in:
@@ -38,13 +38,14 @@ export function ResourcePolicyProvider({
|
||||
};
|
||||
|
||||
return (
|
||||
<ResourcePolicyContext value={{ ...policy, updatePolicy }}>
|
||||
<ResourcePolicyContext value={{ policy, updatePolicy }}>
|
||||
{children}
|
||||
</ResourcePolicyContext>
|
||||
);
|
||||
}
|
||||
|
||||
export type ResourcePolicyContextType = GetResourcePolicyResponse & {
|
||||
export type ResourcePolicyContextType = {
|
||||
policy: GetResourcePolicyResponse;
|
||||
updatePolicy: (updatedPolicy: Partial<GetResourcePolicyResponse>) => void;
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user