Commit e4c1f022 authored by ddcat1115's avatar ddcat1115

fix warning about className, close #689

parent 254c5a6f
...@@ -362,7 +362,7 @@ export default class Analysis extends Component { ...@@ -362,7 +362,7 @@ export default class Analysis extends Component {
<ul className={styles.rankingList}> <ul className={styles.rankingList}>
{rankingListData.map((item, i) => ( {rankingListData.map((item, i) => (
<li key={item.title}> <li key={item.title}>
<span className={i < 3 && styles.active}>{i + 1}</span> <span className={i < 3 ? styles.active : ''}>{i + 1}</span>
<span>{item.title}</span> <span>{item.title}</span>
<span>{numeral(item.total).format('0,0')}</span> <span>{numeral(item.total).format('0,0')}</span>
</li> </li>
......
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