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