From 34f2c35087b8388df6be8e4a67bbf0e4db1cae87 Mon Sep 17 00:00:00 2001 From: Luis Fernando Molina Date: Tue, 6 Nov 2018 16:33:55 +0100 Subject: [PATCH] Charts Integration --- client/html/index.html | 31 ++++++++++------------- client/package.json | 2 +- client/src/views/charts/index.js | 43 +++++++++++++++++++++++++++++--- client/src/views/header/index.js | 13 +--------- 4 files changed, 55 insertions(+), 34 deletions(-) diff --git a/client/html/index.html b/client/html/index.html index f4b045162..815824fb7 100644 --- a/client/html/index.html +++ b/client/html/index.html @@ -35,31 +35,28 @@ - + - - -
+
@@ -138,7 +135,5 @@ - - diff --git a/client/package.json b/client/package.json index 4afb60972..8d8d7471d 100644 --- a/client/package.json +++ b/client/package.json @@ -23,7 +23,7 @@ "devDependencies": { "@advancedalgos/key-vault-client": "^0.0.20", "@advancedalgos/teams-client": "0.0.24", - "@advancedalgos/users-client": "^0.0.15", + "@advancedalgos/users-client": "^0.0.16", "@advancedalgos/events-client": "^0.0.1", "@advancedalgos/web-components": "0.0.13", "@babel/core": "^7.1.2", diff --git a/client/src/views/charts/index.js b/client/src/views/charts/index.js index 8cf31ef85..60bce90a4 100644 --- a/client/src/views/charts/index.js +++ b/client/src/views/charts/index.js @@ -32,6 +32,8 @@ class Charts extends Component { let body = document.getElementById('body') body.style = 'margin: 0px; padding: 0px; border: 0px; overflow:hidden;' this.props.hideFooter() + + window.dispatchEvent(new Event('load')) // This is a workaround to solve the problem that the slider does not show up } componentWillUnmount () { @@ -41,10 +43,45 @@ class Charts extends Component { this.props.showFooter() } - render () { - const { classes } = this.props + addSlider () { return ( - +
+
+
+
+
+
    +
  • + +
    +
    +
    +
    +
    +

    Advanced Algos Charts

    +

    +
    Map of markets and competitions. +

    +
    +
    +
    +
    +
    +
  • +
+
+
+
+
+
+ ) + } + + render () { + return ( + + {this.addSlider()} + ) } } diff --git a/client/src/views/header/index.js b/client/src/views/header/index.js index ad210042e..eee420eb0 100644 --- a/client/src/views/header/index.js +++ b/client/src/views/header/index.js @@ -117,21 +117,10 @@ class Header extends Component { Home -
  • +
  • -