aboutsummaryrefslogtreecommitdiff
path: root/src/actions
diff options
context:
space:
mode:
authorMichael Foiani <mfoiani2019@communityschoolnaples.org>2018-07-25 19:58:53 -0400
committerMichael Foiani <mfoiani2019@communityschoolnaples.org>2018-07-25 19:58:53 -0400
commit2b253a35d7f33a256cf52d555ce5ca39206c7bb2 (patch)
treecfd06077b9b947993d149419621cd4e506f3c8f2 /src/actions
parenta0ebbc6794ed7e0e720f454bfd8e8ae613733396 (diff)
Replaced View1 with Home View
Diffstat (limited to 'src/actions')
-rw-r--r--src/actions/app.js6
1 files changed, 3 insertions, 3 deletions
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.
});