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

Commit

Permalink
add forecast icon to trucks
Browse files Browse the repository at this point in the history
  • Loading branch information
rvennam987 committed Mar 28, 2017
1 parent 13a3583 commit c943b58
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/modules/demos.js
Original file line number Diff line number Diff line change
Expand Up @@ -184,8 +184,8 @@ export function *watchEndDemoSession() {
yield take(END_DEMO_SESSION);
const demoState = yield select(demoSelector);
try {
yield put(logoutSuccess());
yield call(api.endDemo, demoState.guid);
yield put(logoutSuccess());
}
catch (error) {
console.log('Error during logout', error);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -100,8 +100,17 @@ export class ShipmentCard extends React.PureComponent {
Current Weather
</div>
<div>
{currentLocation.weather ?
`${currentLocation.weather.observation.temp}° | ${currentLocation.weather.observation.wx_phrase}` :

{currentLocation.weather ? <div>
<img
alt={currentLocation.weather.observation.wx_phrase}
className={classes.weatherIcon}
src={`/images/weather/${currentLocation.weather.observation.wx_icon}.png`}
/>
{`${currentLocation.weather.observation.temp}
° | ${currentLocation.weather.observation.wx_phrase}`}
</div>
:
(<div style={{ textAlign: 'center' }}><LoadingSpinner size={60} /></div>)}
</div>
</div>
Expand Down

0 comments on commit c943b58

Please sign in to comment.