add useTransactions hook

This commit is contained in:
Ievgen Dilevskyi 2021-07-14 15:08:15 -06:00
parent d47feee0fe
commit b5e5613055
3 changed files with 24 additions and 21635 deletions

21650
frontend/package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@ -1 +1,5 @@
export const useTransactions = () => {} import { Transaction } from '../../types'
import { useGet } from '../util/useGet'
export const useTransactions = (accountId: string) =>
useGet<Transaction[]>(`/accounts/${accountId}/transactions`)

3
package-lock.json generated Normal file
View File

@ -0,0 +1,3 @@
{
"lockfileVersion": 1
}