This commit is contained in:
Belen Curcio
2017-01-30 08:19:18 -03:00
parent 8fe8f6c690
commit c42fea5889
4 changed files with 34 additions and 5 deletions
@@ -1,17 +1,18 @@
import React from 'react';
import {SnackBar} from 'coral-ui';
const Notification = (props) => {
if (props.notification.text) {
setTimeout(() => {
props.clearNotification();
}, props.notifLength);
// setTimeout(() => {
// props.clearNotification();
// }, props.notifLength);
}
return <div>
{
props.notification.text &&
<dialog open id='coral-notif' className={`coral-notif-${ props.notification.type}`}>
<SnackBar id='coral-notif' className={`coral-notif-${props.notification.type}`}>
{props.notification.text}
</dialog>
</SnackBar>
}
</div>;
};