diff --git a/websrc/components/App.tsx b/websrc/components/App.tsx index 26601b6..9be7d16 100644 --- a/websrc/components/App.tsx +++ b/websrc/components/App.tsx @@ -4,10 +4,8 @@ import {CurrencyPair, FirstConnectMessage, NewEventMessage, NewTickMessage, Posi import {socket} from "../index"; import {symbolToPair} from "../utils"; import {Helmet} from "react-helmet"; -import {Navbar} from "./Navbars"; -import {SidebarCard} from "./HCard"; -import {ClockIcon, DollarIcon} from "./Icons"; -import RPlot from "./RPlot"; +import {Navbar, Sidebar} from "./Navbars"; +import {Statusbar} from "./Statusbar"; type AppState = { current_price: number, @@ -68,9 +66,9 @@ class App extends Component<{}, AppState> { this.event_id += 1 - this.setState({ - events: [...this.state.events, new_event] - }) + this.setState((state) => ({ + events: [...state.events, new_event] + })) } }) } @@ -83,29 +81,29 @@ class App extends Component<{}, AppState> { - {String(this.state.active_pair.base) + "/" + String(this.state.active_pair.quote)} {String(this.state.current_price)}
-
+
- } title={""} - content={"$" + this.state.current_price.toFixed(2).toString()}/> - } title={""} - content={this.state.current_tick.toString()}/> +
-
+
- + {/**/}
-
- Made with ❤️ by the Peperone in a scantinato -
+ + {/*
*/} + {/* Made with ❤️ by the Peperone in a scantinato*/} + {/*
*/}
+