Browse Source
Simple list of connected takers (as the UI is mostly used for testing, it doesn't need to look pretty).debug-collab-settlement
Mariusz Klochowicz
3 years ago
2 changed files with 32 additions and 1 deletions
@ -0,0 +1,25 @@ |
|||
import { Heading, ListItem, UnorderedList, VStack } from "@chakra-ui/react"; |
|||
import React from "react"; |
|||
|
|||
export interface TakerId { |
|||
id: string; |
|||
} |
|||
|
|||
interface Props { |
|||
takers: TakerId[]; |
|||
} |
|||
|
|||
const ConnectedTakers = ({ takers }: Props) => { |
|||
return ( |
|||
<VStack spacing={3}> |
|||
<Heading size={"sm"} padding={2}>{"Connected takers: " + takers.length}</Heading> |
|||
<UnorderedList> |
|||
{takers.map((taker) => { |
|||
return (<ListItem>{taker}</ListItem>); |
|||
})} |
|||
</UnorderedList> |
|||
</VStack> |
|||
); |
|||
}; |
|||
|
|||
export default ConnectedTakers; |
Loading…
Reference in new issue