Create two values on SampleWorkspace javascript global variable: isAdmin and isUser. Based on user roles, the program will show the add button in React Sample Module.
In react module, I've created a UserRolesContext to share this information to all components, using the useRoles() hook.
This hook returns these values: isSignedIn, isAdmin, and isUser.
Create two values on SampleWorkspace javascript global variable: isAdmin and isUser. Based on user roles, the program will show the add button in React Sample Module.
In react module, I've created a UserRolesContext to share this information to all components, using the useRoles() hook.
This hook returns these values: isSignedIn, isAdmin, and isUser.