From 231b426a167b223588bda50f26caaefd1691c9e5 Mon Sep 17 00:00:00 2001 From: Cameron Dawson Date: Thu, 31 Jan 2019 12:17:57 -0800 Subject: [PATCH] Bug 1521157 - Push Health make use of reactstrap Collapse component (#4521) --- ui/push-health/Metric.jsx | 46 ++++++++++++++++++++------------------- 1 file changed, 24 insertions(+), 22 deletions(-) diff --git a/ui/push-health/Metric.jsx b/ui/push-health/Metric.jsx index 44a7023e39b..adb025f8e81 100644 --- a/ui/push-health/Metric.jsx +++ b/ui/push-health/Metric.jsx @@ -5,7 +5,7 @@ import { faPlusSquare, faMinusSquare, } from '@fortawesome/free-regular-svg-icons'; -import { Badge, Row, Col } from 'reactstrap'; +import { Badge, Row, Col, Collapse, Card, CardBody } from 'reactstrap'; import { resultColorMap } from './helpers'; import TestFailure from './TestFailure'; @@ -45,11 +45,11 @@ export default class Metric extends React.PureComponent {
-
+
{name} - +
@@ -60,25 +60,27 @@ export default class Metric extends React.PureComponent { - {detailsShowing && ( - - {failures && - failures.map(failure => ( - - ))} - {details && - details.map(detail => ( -
- {detail} -
- ))} -
- )} + + + + {failures && + failures.map(failure => ( + + ))} + {details && + details.map(detail => ( +
+ {detail} +
+ ))} +
+
+