From 5581b84ac607c0f2c07b5b77895662fd50a31f17 Mon Sep 17 00:00:00 2001 From: Marco van Dijk Date: Mon, 21 Mar 2022 16:11:28 +0100 Subject: [PATCH] Formatting fixes --- src/components/OrchAddressViewer.js | 2 +- src/components/OrchDelegatorViewer.js | 6 ++++-- src/components/OrchInfoViewer.js | 22 +++++++++++----------- src/components/orchestratorViewer.js | 4 ++-- src/style.css | 7 +++++++ 5 files changed, 25 insertions(+), 16 deletions(-) diff --git a/src/components/OrchAddressViewer.js b/src/components/OrchAddressViewer.js index db1c332..bac23c5 100644 --- a/src/components/OrchAddressViewer.js +++ b/src/components/OrchAddressViewer.js @@ -77,7 +77,7 @@ const Address = (obj) => { } return ( -
+
diff --git a/src/components/OrchDelegatorViewer.js b/src/components/OrchDelegatorViewer.js index f1cc0b2..fa591f8 100644 --- a/src/components/OrchDelegatorViewer.js +++ b/src/components/OrchDelegatorViewer.js @@ -18,7 +18,9 @@ const OrchDelegatorViewer = (obj) => { delegators.map((delObj, idx) => { return (
-
+
+
+

{parseFloat(delObj.bondedAmount).toFixed(2)} LPT since round {delObj.startRound}

@@ -39,7 +41,7 @@ const OrchDelegatorViewer = (obj) => {

The selected Orchestrator has no Delegators

-
+
) diff --git a/src/components/OrchInfoViewer.js b/src/components/OrchInfoViewer.js index 95c4574..437bce3 100644 --- a/src/components/OrchInfoViewer.js +++ b/src/components/OrchInfoViewer.js @@ -95,20 +95,23 @@ const OrchInfoViewer = (obj) => { if (thisInfo) { if (thisInfo.description) { ensDescription = -
+
+
{thisInfo.description}
} if (thisInfo.url) { - if (!thisInfo.url.startsWith('http')){ + if (!thisInfo.url.startsWith('http')) { thisInfo.url = "https://" + thisInfo.url; } ensUrl = - -
- {thisInfo.url} -
-
+ } } @@ -119,11 +122,8 @@ const OrchInfoViewer = (obj) => {

Orchestrator Info

-
-
-
+
{ensUrl} -
{ensDescription}
diff --git a/src/components/orchestratorViewer.js b/src/components/orchestratorViewer.js index cfcf5b5..55ac5ca 100644 --- a/src/components/orchestratorViewer.js +++ b/src/components/orchestratorViewer.js @@ -6,7 +6,7 @@ const Orchestrator = (obj) => { if (obj.thisOrchestrator) { if (obj.forceVertical) { return ( -
+
{ ) } else { return ( -
+