feat: simplified tx exports

This commit is contained in:
José Oliveira 2021-08-18 13:26:24 +01:00 committed by Josh Harvey
parent 9ec3282ea2
commit c5d9beea04
2 changed files with 51 additions and 14 deletions

View file

@ -56,6 +56,12 @@ const GET_TRANSACTION_FILTERS = gql`
}
`
const GET_SIMPLIFIED_TRANSACTIONS_CSV = gql`
query transactions($limit: Int, $from: Date, $until: Date) {
simplifiedTransactionsCsv(limit: $limit, from: $from, until: $until)
}
`
const GET_TRANSACTIONS = gql`
query transactions(
$limit: Int
@ -276,10 +282,14 @@ const Transactions = () => {
<LogsDowloaderPopover
title="Download logs"
name="transactions"
query={GET_TRANSACTIONS_CSV}
args={{ timezone }}
queries={[
GET_TRANSACTIONS_CSV,
GET_SIMPLIFIED_TRANSACTIONS_CSV
]}
getLogs={logs => R.path(['transactionsCsv'])(logs)}
timezone={timezone}
getSimplifiedLogs={logs =>
R.path(['simplifiedTransactionsCsv'])(logs)
}
/>
</div>
)}