feat: simplified tx exports
This commit is contained in:
parent
9ec3282ea2
commit
c5d9beea04
2 changed files with 51 additions and 14 deletions
|
|
@ -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>
|
||||
)}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue