import React, { Component } from 'react'; import {Button} from 'react-md'; import IntentItem from './IntentItem'; import '../css/components/IntentList.css'; import { LAUNCH_REQUEST_SELECTED_INDEX, CONTACT_SELECTED_INDEX} from '../config/constants' class IntentList extends Component { constructor (props){ super(props); this.state = {intents: props.allIntents, selectedIndex:props.selectedIndex, onIntentClick:props.onIntentClick}; } componentWillReceiveProps(props){ this.setState({intents: props.allIntents, selectedIndex: props.selectedIndex, onIntentClick: props.onIntentClick}); } render() { return (

Questions

{ this.state.intents.map((intent,index)=>{ return }) }

); } } export default IntentList;