-
-
Save kevinold/5767bb334472b7e2bfe3 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
/*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