-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(admin-ui): react component lift up to parent
- Loading branch information
1 parent
f9f5db2
commit 6c99643
Showing
3 changed files
with
61 additions
and
16 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
import React from 'react' | ||
|
||
const GluuTimeoutModal = ({ message = '', description = '' }) => { | ||
return ( | ||
<div | ||
style={{ | ||
position: 'fixed', | ||
top: 0, | ||
bottom: 0, | ||
right: 0, | ||
left: 0, | ||
backgroundColor: 'rgba(0,0,0,0.8)', | ||
color: 'white', | ||
justifyContent: 'center', | ||
alignItems: 'center', | ||
display: 'flex', | ||
flexDirection: 'column', | ||
zIndex: 9999 | ||
}} | ||
> | ||
<img | ||
src={require('Images/logos/logo192.png')} | ||
style={{ | ||
width: '260px', | ||
height: 'auto', | ||
marginBottom: 50, | ||
}} | ||
/> | ||
<h2 style={{ color: 'white' }}>{message}</h2> | ||
<p dangerouslySetInnerHTML={{ __html: description }}></p> | ||
<button | ||
style={{ | ||
border: 0, | ||
backgroundColor: 'transparent', | ||
color: 'white', | ||
textDecoration: 'underline', | ||
}} | ||
onClick={() => window.location.reload()} | ||
> | ||
Try Again | ||
</button> | ||
</div> | ||
) | ||
} | ||
|
||
export default GluuTimeoutModal |
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