This commit is contained in:
GotPPay
2017-11-30 17:43:24 +01:00
parent 630e812654
commit 4f36fc7738
29 changed files with 2884 additions and 43 deletions

View File

@@ -0,0 +1,21 @@
import React, { Component } from 'react';
import '../css/Intent.css'
class IntentItem extends Component {
constructor(props){
super(props);
this.state={intent: props.intent, index: props.index, onClick: props.onClick};
}
render() {
return (
<div className={false ? 'IntentItem-selected' : 'IntentItem'} onClick={()=>{this.state.onClick(this.state.intent)}}>
<p> {this.state.index+1}. {this.state.intent.questions[0]} </p>
</div>
);
}
}
export default IntentItem;