From ec36e1963cf1f3828c3033e452c5c8c3bacfe510 Mon Sep 17 00:00:00 2001 From: afc163 Date: Wed, 25 Oct 2017 20:37:03 +0800 Subject: [PATCH] update code style --- src/components/Charts/NumberInfo/index.js | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/src/components/Charts/NumberInfo/index.js b/src/components/Charts/NumberInfo/index.js index 2f467ee3..bdcba7f5 100644 --- a/src/components/Charts/NumberInfo/index.js +++ b/src/components/Charts/NumberInfo/index.js @@ -13,12 +13,13 @@ export default ({ theme, title, subTitle, total, subTotal, status, suffix, ...re } {...rest} > - { - title &&

{title}

- } -
{subTitle}
+ {title &&

{title}

} + {subTitle &&
{subTitle}
}
- {total}{suffix && {suffix}} + + {total} + {suffix && {suffix}} + { (status || subTotal) && ( -- GitLab