jobs page rendering
parent
998ed7b5fe
commit
a45863ce87
|
@ -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);
|
||||
});
|
||||
|
|
|
@ -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(
|
||||
|
|
|
@ -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);
|
||||
});
|
||||
|
|
|
@ -0,0 +1,2 @@
|
|||
export { default as JobActions } from './Actions';
|
||||
export { default as JobsStore } from './Store';
|
|
@ -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
|
||||
};
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue