Change icon if draw
这个提交包含在:
父节点
d032b80158
当前提交
88478c15b5
共有 1 个文件被更改,包括 2 次插入 和 1 次删除
|
@ -52,6 +52,7 @@ class VoteResults extends React.Component<Props> {
|
|||
|
||||
resultRenderItem = ({item}: Object) => {
|
||||
const isWinner = this.winnerIds.indexOf(item.id) !== -1;
|
||||
const isDraw = this.winnerIds.length > 1;
|
||||
return (
|
||||
<Card style={{
|
||||
marginTop: 10,
|
||||
|
@ -61,7 +62,7 @@ class VoteResults extends React.Component<Props> {
|
|||
title={item.name}
|
||||
description={item.votes + ' ' + i18n.t('voteScreen.results.votes')}
|
||||
left={props => isWinner
|
||||
? <List.Icon {...props} icon="trophy" color={this.colors.primary}/>
|
||||
? <List.Icon {...props} icon={isDraw ? "trophy-outline" : "trophy"} color={this.colors.primary}/>
|
||||
: null}
|
||||
titleStyle={{
|
||||
color: isWinner
|
||||
|
|
正在加载…
在新工单中引用