Merge pull request #4 from dank-inc/CRUD_hooks

Crud hooks
main
Ievgen Dilevskyi 3 years ago committed by GitHub
commit 4925a8af37
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 21650
      frontend/package-lock.json
  2. 0
      frontend/src/hooks/getMany/useAccounts.ts
  3. 6
      frontend/src/hooks/getMany/useTransactions.ts
  4. 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