Skip to content

Instantly share code, notes, and snippets.

@kevinold
Created November 25, 2015 17:35
Show Gist options
  • Save kevinold/5767bb334472b7e2bfe3 to your computer and use it in GitHub Desktop.
Save kevinold/5767bb334472b7e2bfe3 to your computer and use it in GitHub Desktop.
/*global ExpenseReports Currencies ExpenseCategories ExpenseReportCustomFields ExpenseLineCustomFields ExpenseCategoryCustomFields*/
// imports...
class ExpensesApp extends Component {
componentDidMount() {
let dispatch = this.props.dispatch;
dispatch(CustomFieldActionCreators.receiveReportCustomFields(ExpenseReportCustomFields));
dispatch(CustomFieldActionCreators.receiveLineCustomFields(ExpenseLineCustomFields));
dispatch(CustomFieldActionCreators.receiveCategoryCustomFields(ExpenseCategoryCustomFields));
dispatch(ExpenseReportActionCreators.receiveAll(ExpenseReports, ExpenseReportCustomFields));
dispatch(CurrencyActionCreators.receiveAll(Currencies));
dispatch(ExpenseCategoryActionCreators.receiveAll(ExpenseCategories));
dispatch(WalletActionCreators.receiveWalletLines(WalletLines));
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment