Adding React.js, Redux, revamping dashboard
This commit is contained in:
18
app/assets/javascripts/components/actions/statuses.jsx
Normal file
18
app/assets/javascripts/components/actions/statuses.jsx
Normal file
@ -0,0 +1,18 @@
|
||||
export const SET_TIMELINE = 'SET_TIMELINE';
|
||||
export const ADD_STATUS = 'ADD_STATUS';
|
||||
|
||||
export function setTimeline(timeline, statuses) {
|
||||
return {
|
||||
type: SET_TIMELINE,
|
||||
timeline: timeline,
|
||||
statuses: statuses
|
||||
};
|
||||
}
|
||||
|
||||
export function addStatus(timeline, status) {
|
||||
return {
|
||||
type: ADD_STATUS,
|
||||
timeline: timeline,
|
||||
status: status
|
||||
};
|
||||
}
|
Reference in New Issue
Block a user