From 2b253a35d7f33a256cf52d555ce5ca39206c7bb2 Mon Sep 17 00:00:00 2001 From: Michael Foiani Date: Wed, 25 Jul 2018 19:58:53 -0400 Subject: Replaced View1 with Home View --- src/actions/app.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/actions') diff --git a/src/actions/app.js b/src/actions/app.js index 50d1529..d943671 100644 --- a/src/actions/app.js +++ b/src/actions/app.js @@ -16,7 +16,7 @@ export const CLOSE_SNACKBAR = 'CLOSE_SNACKBAR'; export const navigate = (path) => (dispatch) => { // Extract the page name from path. - const page = path === '/' ? 'view1' : path.slice(1); + const page = path === '/' ? 'home' : path.slice(1); // Any other info you might want to extract from the path (like page type), // you can do here @@ -28,8 +28,8 @@ export const navigate = (path) => (dispatch) => { const loadPage = (page) => (dispatch) => { switch(page) { - case 'view1': - import('../components/my-view1.js').then((module) => { + case 'home': + import('../components/mao-home.js').then((module) => { // Put code in here that you want to run every time when // navigating to view1 after my-view1.js is loaded. }); -- cgit v1.2.3-70-g09d2