Created
April 26, 2020 12:20
-
-
Save imhashir/c98dd784e2b4191beb7e91af6a9f957e to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import React from 'react'; | |
// .... | |
// Import all pages here | |
// .... | |
const routes = [ | |
{ path: '/dashboard', name: 'Dashboard', component: Dashboard }, | |
{ path: '/departments/new', exact: true, name: 'Add Community', component: AddDepartment }, | |
{ path: '/departments/:id', name: 'Update Community', component: AddDepartment }, | |
{ path: '/departments', name: 'Departments', component: Departments }, | |
{ path: '/news', name: 'Bulletin', component: News }, | |
{ path: '/live', name: 'Live Stream', component: Live }, | |
{ path: '/guests', name: 'Testimonies', component: Guests }, | |
{ path: '/articles', name: 'Inspiration', component: Articles }, | |
{ path: '/menus', name: 'Lunch', component: Menus }, | |
]; | |
export default routes; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import React from 'react'; | |
const routes = [ | |
]; | |
export default routes; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment