From 47812f45d9dcd079ba557b8af39a734f1f7e1893 Mon Sep 17 00:00:00 2001 From: Robbie Antenesse Date: Mon, 23 Dec 2019 16:37:33 -0700 Subject: [PATCH] Add shelves view to Choo routes --- app/appRoutes.js | 3 +++ app/views/global.js | 1 + 2 files changed, 4 insertions(+) diff --git a/app/appRoutes.js b/app/appRoutes.js index 595cc0e..ea5caeb 100644 --- a/app/appRoutes.js +++ b/app/appRoutes.js @@ -3,6 +3,7 @@ import { homeView } from './views/home'; import { aboutView } from './views/about'; import { loginView } from './views/login'; import { searchView } from './views/search'; +import { shelvesView } from './views/shelves'; import { errorView } from './views/404'; export const appRoutes = (app) => { @@ -16,5 +17,7 @@ export const appRoutes = (app) => { app.route('/search', (state, emit) => globalView(state, emit, searchView)); + app.route('/shelves', (state, emit) => globalView(state, emit, shelvesView)); + app.route('/404', (state, emit) => globalView(state, emit, errorView)); } diff --git a/app/views/global.js b/app/views/global.js index bf51cfa..4483f76 100644 --- a/app/views/global.js +++ b/app/views/global.js @@ -29,6 +29,7 @@ export const globalView = (state, emit, view) => { ${ state.isLoggedIn === true ? [ + html`${i18n.__('global.menu_shelves')}`, html`${i18n.__('global.menu_account')}`, html`${i18n.__('global.menu_logout')}`, ]