-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[DT-841]Display error from Consent on Sign In (#2701)
Co-authored-by: rjohanek <[email protected]>
- Loading branch information
1 parent
358b65c
commit 0a1aba2
Showing
4 changed files
with
45 additions
and
22 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 was deleted.
Oops, something went wrong.
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,24 @@ | ||
import React from 'react'; | ||
import './Alert.css'; | ||
import CloseIcon from '@mui/icons-material/Close'; | ||
|
||
export interface AlertProps { | ||
id: string; | ||
type: string; | ||
title: string; | ||
description: string; | ||
onClose?: () => void; | ||
} | ||
|
||
export const Alert = (props: AlertProps) => { | ||
const {id, type, title, description, onClose} = props; | ||
return ( | ||
<div id={`${id}_alert`} className={`alert-wrapper ${type}`} style={{border: '1px solid red', borderRadius: '5px'}}> | ||
{onClose && <span | ||
style={{float: 'right', fontWeight: 'bolder', fontSize: 24, cursor: 'pointer'}} | ||
onClick={onClose} ><CloseIcon/></span> } | ||
{title && <h4 id={`${id}_title`} className="alert-title">{title}</h4>} | ||
{description && <span id={`${id}_description`} className="alert-description">{description}</span>} | ||
</div> | ||
); | ||
}; |
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