Last active
March 14, 2016 14:33
-
-
Save SeanRoberts/ee3de051ba13bea026d6 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 * as actions from './actions/index' | |
// ... |
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
// actions/index.js | |
import * as data from './data'; | |
import * as list from './list'; | |
import * as ui from './ui'; | |
export default { ...data, ...list, ...ui }; |
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
// actions/ui.js | |
import * as types from '../constants/action-types'; | |
export const toggleQuickSearch = (to) => { | |
return { | |
type: types.TOGGLE_QUICK_SEARCH, | |
to: to | |
}; | |
}; | |
export const toggleFilterDrawer = (to = 'opposite') => { | |
return { | |
type: types.TOGGLE_FILTER_DRAWER, | |
to: to | |
}; | |
}; | |
export const toggleExpandedRecord = (record) => { | |
return { | |
type: types.TOGGLE_EXPANDED_RECORD, | |
record: record | |
}; | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment