jobs page rendering

pull/1382/head
Berkeley Martinez 2015-07-25 15:15:59 -07:00
parent 998ed7b5fe
commit a45863ce87
6 changed files with 16 additions and 12 deletions

View File

@ -1,11 +1,17 @@
import { Cat } from 'thundercats';
import { HikesActions, HikesStore } from './routes/Hikes/flux';
import { AppActions, AppStore } from './flux';
import { HikesActions, HikesStore } from './routes/Hikes/flux';
import { JobActions, JobsStore} from './routes/Jobs/flux';
export default Cat()
.init(({ instance: cat, args: [services] }) => {
cat.register(AppActions, null, services);
cat.register(AppStore, null, cat);
cat.register(HikesActions, null, services);
cat.register(HikesStore, null, cat);
cat.register(JobActions, null, services);
cat.register(JobsStore, null, cat);
});

View File

@ -1,5 +1,5 @@
import React, { PropTypes } from 'react';
import { contain } from 'thundercats';
import { contain } from 'thundercats-react';
import { Grid, Row } from 'react-bootstrap';
export default contain(

View File

@ -2,7 +2,7 @@ import { Store } from 'thundercats';
export default Store()
.refs({ displayName: 'JobsStore' })
.init(({ instane: jobsStore, args: [cat] }) => {
.init(({ instance: jobsStore, args: [cat] }) => {
let jobsActions = cat.getActions('JobsActions');
jobsStore.register(jobsActions);
jobsStore.register(jobsActions.getJob);
});

View File

@ -0,0 +1,2 @@
export { default as JobActions } from './Actions';
export { default as JobsStore } from './Store';

View File

@ -9,10 +9,6 @@ import Jobs from './components/Jobs.jsx';
*/
export default {
path: '/jobs/(:jobId)',
getComponents(cb) {
setTimeout(() => {
cb(null, Jobs);
}, 0);
}
path: 'jobs',
component: Jobs
};

View File

@ -1,4 +1,4 @@
// import Jobs from './Jobs';
import Jobs from './Jobs';
import Hikes from './Hikes';
export default {
@ -6,7 +6,7 @@ export default {
getChildRoutes(locationState, cb) {
setTimeout(() => {
cb(null, [
// Jobs,
Jobs,
Hikes
]);
}, 0);