Commit ec36e196 authored by afc163's avatar afc163

update code style

parent 2a108cf3
...@@ -13,12 +13,13 @@ export default ({ theme, title, subTitle, total, subTotal, status, suffix, ...re ...@@ -13,12 +13,13 @@ export default ({ theme, title, subTitle, total, subTotal, status, suffix, ...re
} }
{...rest} {...rest}
> >
{ {title && <h4>{title}</h4>}
title && <h4>{title}</h4> {subTitle && <h6>{subTitle}</h6>}
}
<h6>{subTitle}</h6>
<div> <div>
<span>{total}{suffix && <em className={styles.suffix}>{suffix}</em>}</span> <span>
{total}
{suffix && <em className={styles.suffix}>{suffix}</em>}
</span>
{ {
(status || subTotal) && ( (status || subTotal) && (
<span className={styles.subTotal}> <span className={styles.subTotal}>
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment