Update snippets/Alert.md

Co-Authored-By: Angelos Chalaris <chalarangelo@gmail.com>
This commit is contained in:
Theodorus Yoga Mahendraputra
2019-09-20 10:56:11 +07:00
committed by GitHub
parent 284c5b936e
commit 94f82f6666

View File

@ -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>