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`)
 | 
			
		||||
 
 | 
			
		||||
							
								
								
									
										3
									
								
								package-lock.json
									
									
									
										generated
									
									
									
										Normal file
									
								
							
							
						
						
									
										3
									
								
								package-lock.json
									
									
									
										generated
									
									
									
										Normal file
									
								
							@@ -0,0 +1,3 @@
 | 
			
		||||
{
 | 
			
		||||
  "lockfileVersion": 1
 | 
			
		||||
}
 | 
			
		||||
		Reference in New Issue
	
	Block a user