Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Wine details in Anayltics could probably use the Wine Component #8

Open
jmburges opened this issue Aug 24, 2017 · 0 comments
Open

Wine details in Anayltics could probably use the Wine Component #8

jmburges opened this issue Aug 24, 2017 · 0 comments

Comments

@jmburges
Copy link

<Grid.Column>
<h3>Most Reviewed Wine</h3>
{mostReviewed[0] ?
<Grid>
<Grid.Row>
<Grid.Column>
<center><h4><u>{mostReviewed[0].name}</u></h4></center>
</Grid.Column>
</Grid.Row>
<Grid.Row columns={2}>
<Grid.Column>
<Link to={`/winelist/${mostReviewed[0].id}`}><Image src={`${mostReviewed[0].image}`} size='medium'/></Link>
</Grid.Column>
<Grid.Column>
<p>
<b><i>Varietal:</i></b> {mostReviewed[0].varietal}<br/>
<b><i>Region:</i></b> {mostReviewed[0].region}<br/>
<b><i>Winery:</i></b> {mostReviewed[0].winery}<br/>
<b><i>Type:</i></b> {mostReviewed[0].wine_type}<br/>
</p>
</Grid.Column>
</Grid.Row>
</Grid>
: null }
</Grid.Column>

In here you display both the most reviewed wine and the wine of the week. Couldn't you use the wine component and just pass in different wines here instead of having a few slightly different iterations on a wine display?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant