Skip to content
This repository has been archived by the owner on Apr 16, 2021. It is now read-only.

Commit

Permalink
Add loading message for forecast #228
Browse files Browse the repository at this point in the history
  • Loading branch information
rvennam987 committed Dec 14, 2016
1 parent 0697d83 commit 5291607
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/routes/Dashboard/components/ForecastTile/ForecastTile.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -67,14 +67,15 @@ export class ForecastTile extends React.PureComponent {
</TableRow>
</TableHeader>
<TableBody displayRowCheckbox={false} >
{ this.props.address.weather && this.props.address.weather.map((forecast, i) =>
{ this.props.address.weather ? this.props.address.weather.slice(0, 5).map((forecast, i) =>
<TableRow key={i}>
<TableRowColumn style={styles.column}>{forecast.dow}</TableRowColumn>
<TableRowColumn style={styles.column}>
{forecast.day ? forecast.day.phrase_22char : forecast.night.phrase_22char}
</TableRowColumn>
</TableRow>
)}
) :
<div>Please wait...</div>}
</TableBody>
</Table>

Expand Down

0 comments on commit 5291607

Please sign in to comment.