fixed delete bug, code refactoring, improved UI

This commit is contained in:
GotPPay
2018-01-10 13:27:09 +01:00
parent 84c11f1b2f
commit 3214a2bea4
12 changed files with 268 additions and 85 deletions

View File

@@ -21,9 +21,10 @@ class IntentItem extends Component {
<Button className={this.props.selectedIndex===this.state.index ? 'IntentItem-selected' : 'IntentItem'}
onClick={()=>{this.state.onClick(this.state.intent,this.state.index)}}
flat
disabled={this.props.waiting}
tooltipDelay={INTENT_TITLE_TOOLTIP_DELAY}
tooltipLabel={this.state.intent.intentName.length>INTENT_TITLE_MAX_LENGTH ? this.state.intent.questions[0] : ''}>
{this.state.index+1}. {buttonTitle}
{buttonTitle}
</Button>
<br></br>
</div>