Skip to content

Instantly share code, notes, and snippets.

@SeanRoberts
Last active March 14, 2016 14:33
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save SeanRoberts/ee3de051ba13bea026d6 to your computer and use it in GitHub Desktop.
Save SeanRoberts/ee3de051ba13bea026d6 to your computer and use it in GitHub Desktop.
import * as actions from './actions/index'
// ...
// actions/index.js
import * as data from './data';
import * as list from './list';
import * as ui from './ui';
export default { ...data, ...list, ...ui };
// 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