Merge pull request #482 from coralproject/flash-messages

Flash Messages fix
This commit is contained in:
Kim Gardner
2017-04-11 17:46:44 -04:00
committed by GitHub
2 changed files with 4 additions and 2 deletions
+3 -1
View File
@@ -2,6 +2,7 @@ import pym from 'pym.js';
import {stringify} from 'querystring';
// TODO: Styles should live in a separate file
const snackbarStyles = {
position: 'fixed',
cursor: 'default',
@@ -20,7 +21,8 @@ const snackbarStyles = {
opacity: 0,
transform: 'translate(-50%, 20px)',
bottom: 0,
boxSizing: 'border-box'
boxSizing: 'border-box',
fontFamily: 'Helvetica, \'Helvetica Neue\', Verdana, sans-serif'
};
// This function should return value of window.Coral
@@ -1,4 +1,4 @@
import {pym} from '../../coral-framework';
import pym from '../services/PymConnection';
export const addNotification = (notifType, text) => {
pym.sendMessage('coral-alert', `${notifType}|${text}`);