Last active
August 26, 2018 00:02
-
-
Save joshmrallen/374054dc396ed72ad2cbe4f6b2b52d94 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import React from 'react'; | |
import './Business.css'; | |
class Business extends React.Component { | |
render(){ | |
return( | |
<div className="Business"> | |
<div className="image-container"> | |
<img src={this.props.business.imageSrc} alt=''/> | |
</div> | |
<h2>{this.props.business.name}</h2> | |
<div className="Business-information"> | |
<div className="Business-address"> | |
<p>{this.props.business.address}</p> | |
<p>{this.props.business.city}</p> | |
<p>{`${this.props.business.state} ${this.props.business.zipCode}`}</p> | |
</div> | |
<div className="Business-reviews"> | |
<h3>{this.props.business.category}</h3> | |
<h3 className="rating">{`${this.props.business.rating} stars`}</h3> | |
<p>{`${this.props.business.reviewCount} reviews`}</p> | |
</div> | |
</div> | |
</div> | |
); | |
} | |
} | |
export default Business; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment