Permalink
Browse files

Step 19: Update '~/main.js' to remove hard-coded data and start liste…

…ning to new methods.
  • Loading branch information...
embengineering committed May 22, 2016
1 parent 9c397ab commit 13aeb809458067099f88d1cf30fae29a14508261
Showing with 2 additions and 15 deletions.
  1. +2 −15 src/main.js
@@ -13,19 +13,6 @@ import store from './store';
import MiniDashboard from './components/MiniDashboard.jsx';
import * as miniDashboardActions from './actions/miniDashboardActions';
// TEST DATA
const testData = {
welcomeMsg: {
title: 'Welcome to the Starter Kit',
msg: 'Lorem ipsum dolor sit amet, consectetur adipiscing elit. Proin cursus vitae velit a congue.',
imgUrl: 'http://icdn8.digitaltrends.com/image/funny-grumpy-cat-images-hd-wallpaper-1080x611-640x0.jpg'
},
cards: [
{title: 'Foo', msg: 'Lorem ipsum dolor sit amet, consectetur adipiscing elit. Proin cursus vitae velit a congue.', imgUrl: 'http://lorempixel.com/500/300/city/'},
{title: 'Bar', msg: 'Etiam pretium a elit in varius. Ut vel est accumsan, interdum erat sit amet, lacinia risus.', imgUrl: 'http://lorempixel.com/500/300/nature/'}
]
};
ReactDOM.render(
<Provider store={store}>
<MiniDashboard />
@@ -34,6 +21,6 @@ ReactDOM.render(
);
setTimeout(() => {
store.dispatch(miniDashboardActions.displayWelcomeCard(testData.welcomeMsg));
store.dispatch(miniDashboardActions.displayCardList(testData.cards));
store.dispatch(miniDashboardActions.startListeningToWelcomeCard());
store.dispatch(miniDashboardActions.startListeningToCardList());
});

0 comments on commit 13aeb80

Please sign in to comment.