In App, we'll create a useTodos hook that will select the relevant Onyx data for the reports that need to be approved.
Create Onyx selectors: Approve
- Create a new
useTodos hook
- This hook will select
reports, policies, transactions, transactionViolations and reportNameValuePairs
- It'll call
isApproveAction to verify that the report has Approve as primary action and thus should show up in the Reports > To-do section
In App, we'll create a
useTodoshook that will select the relevant Onyx data for the reports that need to be approved.Create Onyx selectors: Approve
useTodoshookreports,policies,transactions,transactionViolationsandreportNameValuePairsisApproveActionto verify that the report hasApproveas primary action and thus should show up in theReports > To-dosection