add useTransactions hook

main
Ievgen Dilevskyi 3 years ago
parent d47feee0fe
commit b5e5613055
  1. 21650
      frontend/package-lock.json
  2. 6
      frontend/src/hooks/getMany/useTransactions.ts
  3. 3
      package-lock.json

File diff suppressed because it is too large Load Diff

@ -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

@ -0,0 +1,3 @@
{
"lockfileVersion": 1
}
Loading…
Cancel
Save