defined CurrencyPair

This commit is contained in:
Giulio De Pasquale 2020-12-16 18:42:13 +00:00
parent 3933545a77
commit 60db4f93e0
2 changed files with 6 additions and 1 deletions

View File

@ -81,7 +81,7 @@ class App extends Component<{}, AppState> {
<Navbar bg="light" expand="lg" className="border-bottom"> <Navbar bg="light" expand="lg" className="border-bottom">
<Navbar.Brand href="#" className={"mr-auto"}>Rustico - BfxBot</Navbar.Brand> <Navbar.Brand href="#" className={"mr-auto"}>Rustico - BfxBot</Navbar.Brand>
<CurrencyDropdown active_pair={"BTC/USD"} pairs={["BTC/USD", "XMR/USD"]}/> <CurrencyDropdown active_pair={{base: "BTC", quote: "USD"}} pairs={[{base: "XMR", quote: "USD"}]}/>
</Navbar> </Navbar>
<Container fluid className="mt-2 border flex-fill d-flex"> <Container fluid className="mt-2 border flex-fill d-flex">

View File

@ -32,3 +32,8 @@ export type PositionCloseMessage = {
position_id: number, position_id: number,
} }
export type CurrencyPair = {
base: string,
quote: string
}