-
Notifications
You must be signed in to change notification settings - Fork 27
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into chore-cypress-integration-login-module
- Loading branch information
Showing
20 changed files
with
344 additions
and
209 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
@react.component | ||
let make = (~message="You don't have access to this module. Contact admin for access") => { | ||
let {setDashboardPageState} = React.useContext(GlobalProvider.defaultContext) | ||
React.useEffect0(() => { | ||
RescriptReactRouter.replace("/unauthorized") | ||
None | ||
}) | ||
<NoDataFound message renderType={Locked}> | ||
<Button | ||
text={"Go to Home"} | ||
buttonType=Primary | ||
onClick={_ => { | ||
setDashboardPageState(_ => #HOME) | ||
RescriptReactRouter.replace("/home") | ||
}} | ||
customButtonStyle="mt-4 !p-2" | ||
/> | ||
</NoDataFound> | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
let formAuthContext = React.createContext(AuthTypes.ReadWrite) | ||
let formAuthContext = React.createContext(AuthTypes.Access) | ||
|
||
let make = React.Context.provider(formAuthContext) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.