import React, {Component} from 'react'; import {FormGroup, Input} from 'reactstrap'; class SelectBillingAddress extends Component { constructor(props) { super(props); this.handleOptionChange = this.handleOptionChange.bind(this); } handleOptionChange(){ this.props.handleBillingChange(this.props.billingAddress); } render() { const {billingAddress, openAddressDialog, idSelectedBillingAddress} = this.props; return (
{billingAddress.firstName} {billingAddress.lastName} { billingAddress.invoiceMail && ( {billingAddress.invoiceMail} ) }
{billingAddress.countryName}, {billingAddress.city}, {billingAddress.detailedAddress}, {billingAddress.zipCode}
{openAddressDialog('edit', billingAddress)}} id="edit-address-btn" aria-hidden="true">
); } } export default SelectBillingAddress;