Provides an access-decision-manager binding for react with the next modules
<AccessDecisionManagerProvider user={} voters={}> component - Provides a component that binds the accessDecisionManager functioality with their respective arguments {user, voters, context?
useIsGranted() - hook- This hooks must be used in components that are under the AccessDecisionManagerProvider component to be able to use the voters and user
Why is this important?
Where should the reviewer start?
How should this be manually tested?
Clone the repo
Go to /packages/access-decision-manager-react/
run npm install
run npx jest --verbose all test should pass
Pending work
[ ] Create readme
[x] Enable strategies
[ ] Verify usage of context
[ ] Write examples with tests
Type of change
[ ] Bug fix (non-breaking change which fixes an issue)
[x] New feature (non-breaking change which adds functionality)
[ ] Breaking change (fix or feature that would cause existing functionality to change)
Checklist
[ ] I have added necessary documentation (if appropriate)
[x] I did review existing Pull Requests before submitting mine
[x] I have added tests that prove my fix is effective or that my feature works
What does this PR do?
Address #28
Provides an
access-decision-manager
binding for react with the next modules<AccessDecisionManagerProvider user={} voters={}>
component - Provides a component that binds the accessDecisionManager functioality with their respective arguments {user, voters, context?useIsGranted()
- hook- This hooks must be used in components that are under theAccessDecisionManagerProvider
component to be able to use the voters and userWhy is this important?
Where should the reviewer start?
How should this be manually tested?
npm install
npx jest --verbose
all test should passPending work
Type of change
Checklist