Update snippets/Alert.md
Co-Authored-By: Angelos Chalaris <chalarangelo@gmail.com>
This commit is contained in:
committed by
GitHub
parent
284c5b936e
commit
94f82f6666
@ -86,7 +86,7 @@ function Notification(props) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
return isShown && (
|
return isShown && (
|
||||||
<div className={`alert ${props.type}${isLeaving ? ' leaving' : ''}`}>
|
<div className={`alert ${props.type}${isLeaving ? ' leaving' : ''}`} role="alert">
|
||||||
<button className="close" onClick={closeNotification} />
|
<button className="close" onClick={closeNotification} />
|
||||||
{props.message}
|
{props.message}
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
Reference in New Issue
Block a user