add useTransactions hook
This commit is contained in:
21650
frontend/package-lock.json
generated
21650
frontend/package-lock.json
generated
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`)
|
||||
|
Reference in New Issue
Block a user