added bintransactions component and function for the transaction api to get transaction involving a given object
This commit is contained in:
parent
353b1cb6b9
commit
554fd0c228
4 changed files with 73 additions and 2 deletions
24
src/bin/BinTransactions.tsx
Normal file
24
src/bin/BinTransactions.tsx
Normal file
|
|
@ -0,0 +1,24 @@
|
|||
import { Box } from "@mui/material";
|
||||
import { Bin } from "models";
|
||||
import { pond } from "protobuf-ts/pond";
|
||||
import { useEffect, useState } from "react";
|
||||
|
||||
interface Props {
|
||||
bin: Bin
|
||||
}
|
||||
|
||||
export default function BinTransactions(props: Props){
|
||||
const { bin } = props
|
||||
const [state, setState] = useState<pond.TransactionState>(pond.TransactionState.TRANSACTION_STATE_PENDING)
|
||||
|
||||
useEffect(()=>{
|
||||
// load transactions for bin with matching state (pending is default)
|
||||
|
||||
},[state, bin])
|
||||
|
||||
return (
|
||||
<Box>
|
||||
{/* */}
|
||||
</Box>
|
||||
)
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue