Skip to content

Commit

Permalink
Finance: add toast for exporting transactions (#980)
Browse files Browse the repository at this point in the history
  • Loading branch information
sohkai authored Sep 10, 2019
1 parent b63e672 commit 1c9eb3d
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions apps/finance/app/src/components/Transfers.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ import {
textStyle,
useLayout,
useTheme,
useToast,
} from '@aragon/ui'
import { useConnectedAccount, useCurrentApp, useNetwork } from '@aragon/api-react'
import { saveAs } from 'file-saver'
Expand Down Expand Up @@ -118,6 +119,7 @@ const Transfers = React.memo(({ tokens, transactions }) => {
const connectedAccount = useConnectedAccount()
const currentApp = useCurrentApp()
const network = useNetwork()
const toast = useToast()
const theme = useTheme()
const { layoutName } = useLayout()

Expand Down Expand Up @@ -175,6 +177,7 @@ const Transfers = React.memo(({ tokens, transactions }) => {
selectedDateRange
)
saveAs(new Blob([data], { type: 'text/csv;charset=utf-8' }), filename)
toast('Transfers data exported')
}, [currentApp, filteredTransfers, tokenDetails, resolveAddress])
const emptyResultsViaFilters =
!filteredTransfers.length &&
Expand Down

0 comments on commit 1c9eb3d

Please sign in to comment.