-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* add saml error page * prettier * update logo * update logo * fix issue with error * make it a page --------- Co-authored-by: guyp-descope <[email protected]> Co-authored-by: Omer C <[email protected]>
- Loading branch information
1 parent
7f0869c
commit 6ae6091
Showing
5 changed files
with
69 additions
and
6 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,2 @@ | ||
#!/usr/bin/env sh | ||
. "$(dirname -- "$0")/_/husky.sh" | ||
|
||
yarn run format-lint |
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,38 @@ | ||
import React from 'react'; | ||
import logo from './assets/logo.svg'; | ||
|
||
const SamlError: React.FC = () => { | ||
let error = 'An error occurred'; | ||
|
||
const queryParam = new URLSearchParams(window.location.search); | ||
error = queryParam.get('error') || 'An error occurred'; | ||
|
||
return ( | ||
<div className="app-content"> | ||
<img | ||
src={logo} | ||
alt="logo" | ||
style={{ | ||
marginBottom: '16px' | ||
}} | ||
/> | ||
<h2 className="header-label">Uh-oh, something went wrong</h2> | ||
<div | ||
style={{ | ||
marginBottom: '96px' | ||
}} | ||
> | ||
<p | ||
className="text-body1" | ||
style={{ | ||
marginTop: '32px' | ||
}} | ||
> | ||
{error} | ||
</p> | ||
</div> | ||
</div> | ||
); | ||
}; | ||
|
||
export default SamlError; |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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