From 322969daa78558e55143315897a9cdb4c1cb5b19 Mon Sep 17 00:00:00 2001 From: Pierre HUBERT Date: Mon, 12 Jul 2021 18:55:28 +0200 Subject: [PATCH] Improve page appearance --- src/ui/routes/ComunicUserRoute.tsx | 75 ++++++++++++++++++------------ 1 file changed, 46 insertions(+), 29 deletions(-) diff --git a/src/ui/routes/ComunicUserRoute.tsx b/src/ui/routes/ComunicUserRoute.tsx index de1520b..80797ed 100644 --- a/src/ui/routes/ComunicUserRoute.tsx +++ b/src/ui/routes/ComunicUserRoute.tsx @@ -102,6 +102,30 @@ export class ComunicUserRoute extends React.Component< } build() { + const properties = this.userProperties.map((p) => { + return ( + + + {p.name} + + + {p.child != null + ? p.child + : p.bool != null + ? p.bool + ? "Yes" + : "No" + : p.value == null + ? "Undefined" + : p.value} + + + ); + }); return ( <> - + - - - {this.userProperties.map((p) => { - return ( - - - {p.name} - - - {p.child != null - ? p.child - : p.bool != null - ? p.bool - ? "Yes" - : "No" - : p.value == null - ? "Undefined" - : p.value} - - - ); - })} - -
+ + + + + {properties.slice( + 0, + properties.length / 2 + )} + +
+
+ + + + {properties.slice( + properties.length / 2 + )} + +
+
+