Write now, all the accounting data is being parsed and formatted through the useAccounting hook. This is only for Moloch v2 data though. In order to not bloat that single hook, we should move it to useAccountingV2, and create a useAccountingV3 hook for all the new data.
There's also some formatting happening in the actual accounting page (check the useMemos in accounting.tsx). We should reorganize this in a way that is less bloated once v3 data comes into play.
Tasks
[x] Split useAccounting into useAccountingV2 and useAccountingV3
[x] Reorganize data formatting in accounting page memos
Overview
Write now, all the accounting data is being parsed and formatted through the
useAccounting
hook. This is only for Moloch v2 data though. In order to not bloat that single hook, we should move it touseAccountingV2
, and create auseAccountingV3
hook for all the new data.There's also some formatting happening in the actual accounting page (check the
useMemo
s inaccounting.tsx
). We should reorganize this in a way that is less bloated once v3 data comes into play.Tasks
useAccounting
intouseAccountingV2
anduseAccountingV3