enabled plot, enabled positions table

This commit is contained in:
Giulio De Pasquale 2020-12-19 21:54:04 +00:00
parent 7208ed7d47
commit e9efbdfc35

View File

@ -6,6 +6,8 @@ import {symbolToPair} from "../utils";
import {Helmet} from "react-helmet"; import {Helmet} from "react-helmet";
import {Navbar, Sidebar} from "./Navbars"; import {Navbar, Sidebar} from "./Navbars";
import {Statusbar} from "./Statusbar"; import {Statusbar} from "./Statusbar";
import {PositionsTable} from "./Tables";
import RPlot from "./RPlot";
type AppState = { type AppState = {
current_price: number, current_price: number,
@ -93,10 +95,11 @@ class App extends Component<{}, AppState> {
<div className="flex flex-col flex-grow my-8 shadow-md hover:shadow-lg"> <div className="flex flex-col flex-grow my-8 shadow-md hover:shadow-lg">
<div <div
className="py-2 flex-grow bg-white dark:bg-gray-600 rounded-lg"> className="py-2 flex-grow bg-white dark:bg-gray-600 rounded-lg">
{/*<RPlot/>*/} <RPlot/>
</div> </div>
</div> </div>
{this.state.positions.length > 0 ? <PositionsTable positions={this.state.positions}/> : null}
<footer className="flex rounded-lg justify-center bg-gray-600 mt-4 border-t text-gray-300"> <footer className="flex rounded-lg justify-center bg-gray-600 mt-4 border-t text-gray-300">
<span className="my-1 mx-1">Made with by the Peperone in a scantinato</span> <span className="my-1 mx-1">Made with by the Peperone in a scantinato</span>