In App, we'll create a useTodos hook that will select the relevant Onyx data for the reports that need to be paied.
Create Onyx selectors: Pay
- Create a new
useTodos hook
- This hook will select
reports, policies, transactions, transactionViolations and reportNameValuePairs
- It'll call
isPrimaryPayAction to verify that the report has Pay 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 paied.Create Onyx selectors: Pay
useTodoshookreports,policies,transactions,transactionViolationsandreportNameValuePairsisPrimaryPayActionto verify that the report hasPayas primary action and thus should show up in theReports > To-dosection