Created
September 25, 2016 16:22
-
-
Save qstrahl/6b6d95f05d4a9af815db25ff3e409f9f to your computer and use it in GitHub Desktop.
This file contains hidden or 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 Relay from 'react-relay'; | |
import ChangePassword from './containers/ChangePassword'; | |
import Dashboard from './containers/Dashboard'; | |
import NotFoundPage from './containers/NotFoundPage'; | |
import PlanIncome from './containers/PlanIncome'; | |
import PlanPage from './containers/PlanPage'; | |
import PlanPayments from './containers/PlanPayments'; | |
import PlanSummary from './containers/PlanSummary'; | |
const ViewerQueries = { | |
viewer: () => Relay.QL`query { viewer }`, | |
}; | |
export default function createRoutes() { | |
return [ | |
{ | |
path: '/', | |
name: 'dashboard', | |
queries: ViewerQueries, | |
component: Dashboard, | |
}, { | |
path: 'plan', | |
name: 'plan', | |
component: PlanPage, | |
childRoutes: [ | |
{ | |
path: 'income', | |
name: 'income', | |
component: PlanIncome, | |
}, | |
], | |
}, { | |
path: 'change-password/:resetToken', | |
name: 'changepassword', | |
component: ChangePassword, | |
}, { | |
path: '*', | |
name: 'notfound', | |
component: NotFoundPage, | |
}, | |
]; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment