diff --git a/src/pages/grafana.js b/src/pages/grafana.js index 29d80f2..0a42a85 100644 --- a/src/pages/grafana.js +++ b/src/pages/grafana.js @@ -14,21 +14,7 @@ const Grafana = (obj) => { if (redirectToHome) { return ; } - // Generate component for displaying LPT and ETH price and price change - let lptPrice = 0; - let ethPrice = 0; - let lptPriceChange24h = 0; - let ethPriceChange24h = 0; - if (livepeer.quotes) { - if (livepeer.quotes.LPT) { - lptPrice = livepeer.quotes.LPT.price.toFixed(2); - lptPriceChange24h = livepeer.quotes.LPT.percent_change_24h.toFixed(2); - } - if (livepeer.quotes.ETH) { - ethPrice = livepeer.quotes.ETH.price.toFixed(2); - ethPriceChange24h = livepeer.quotes.ETH.percent_change_24h.toFixed(2); - } - } + return (
@@ -47,24 +33,18 @@ const Grafana = (obj) => {
-
- -

${lptPrice}

-

({lptPriceChange24h}%)

-
{ setRedirectToHome(true); }}>

Livepeer Orchestrator

-
- -

${ethPrice}

-

({ethPriceChange24h}%)

-
+
+ + +
@@ -72,7 +52,7 @@ const Grafana = (obj) => {
@@ -84,7 +64,7 @@ const Grafana = (obj) => {
@@ -96,7 +76,7 @@ const Grafana = (obj) => {
@@ -108,7 +88,7 @@ const Grafana = (obj) => {
@@ -120,7 +100,7 @@ const Grafana = (obj) => {