Skip to content

Commit

Permalink
Added timestamp
Browse files Browse the repository at this point in the history
  • Loading branch information
typeoh committed Jul 25, 2017
1 parent 3c918a6 commit cb7279e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/itinerary/ItineraryIndex.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ class ItineraryIndex extends Component {
<ItineraryTime />
</div>
<div className="column is-1">
<TimeSet time={this.state.time} />
<TimeSet time={this.state.time} cards={this.state.itineraryCards}/>
</div>
<div className="column is-10">
<SortableComponent cards={this.state.itineraryCards} />
Expand Down
6 changes: 4 additions & 2 deletions src/itinerary/TimeSet.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,14 @@ import React, { Component } from 'react';
class TimeSet extends Component {
render() {
const timeArray = this.props.time;
console.log(this.props.time)
console.log('time in timeset is', parseInt(this.props.time))
const cardArray = this.props.card
console.log(cardArray)
return (
<div className="has-text-centered">
{
timeArray.map((time) => {
return <div className="time">
return <div className="time" >
<h6 className="title is-6">{`${time} : 00`}</h6>
</div>;
})
Expand Down

0 comments on commit cb7279e

Please sign in to comment.