Merge pull request #4 from dank-inc/CRUD_hooks

Crud hooks
This commit is contained in:
Ievgen Dilevskyi 2021-07-14 15:26:04 -06:00 committed by GitHub
commit 4925a8af37
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 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
}