From 7bbd99ba97a21fbf5d49b2228492bf08635317a4 Mon Sep 17 00:00:00 2001 From: Giulio De Pasquale Date: Wed, 16 Dec 2020 12:57:29 +0000 Subject: [PATCH] added dynamic title based on current price --- templates/index.html | 122 +------------------------------------- websrc/components/App.tsx | 5 ++ 2 files changed, 8 insertions(+), 119 deletions(-) diff --git a/templates/index.html b/templates/index.html index a29b2cd..685c228 100644 --- a/templates/index.html +++ b/templates/index.html @@ -4,129 +4,13 @@ - -Hello world! +Rustico -
- - - - +
+ \ No newline at end of file diff --git a/websrc/components/App.tsx b/websrc/components/App.tsx index 6cea163..e0a2e59 100644 --- a/websrc/components/App.tsx +++ b/websrc/components/App.tsx @@ -5,6 +5,7 @@ import RPlot from "./RPlot"; import {FirstConnectMessage, NewEventMessage, NewTickMessage, PositionState, socket} from "../"; import {PositionTable} from "./Tables"; import {EventData, Events} from "./Events"; +import {Helmet} from "react-helmet"; type AppState = { current_price: number, @@ -71,6 +72,10 @@ class App extends Component<{}, AppState> { render() { return (
+ + {/* TODO: fix currency */} + Rustico - USD {String(this.state.current_price)} + Rustico - BfxBot