Skip to content

Commit

Permalink
Merge branch 'rename-add-trip-component' into edit-trip-modal-infra
Browse files Browse the repository at this point in the history
  • Loading branch information
zghera committed Jul 16, 2020
2 parents 3e6ff4d + fae464f commit 8c5d98a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions frontend/src/components/ViewTrips/create-new-trip.js
Original file line number Diff line number Diff line change
Expand Up @@ -81,8 +81,8 @@ function formatTripData(rawTripObj) {
{
trip_creation_time: firebase.firestore.Timestamp.now(),
name: getTripName(rawTripObj.name),
description: getTripDestination(rawTripObj.destination),
destination: rawTripObj.description,
description: rawTripObj.description,
destination: getTripDestination(rawTripObj.destination),
start_date: getTimestampFromDateString(rawTripObj.startDate),
end_date: getTimestampFromDateString(rawTripObj.endDate),
collaborators: getCollaboratorUidArray(rawTripObj.collaboratorEmails)
Expand Down
4 changes: 2 additions & 2 deletions frontend/src/components/ViewTrips/trip.js
Original file line number Diff line number Diff line change
Expand Up @@ -44,9 +44,9 @@ const Trip = (props) => {
return (
<div>
<h2>{props.tripObj.name}</h2>
<p>{props.tripObj.description}</p>
<p>{getDateRange(props.tripObj)}</p>
<p>{props.tripObj.destination}</p>
<p>{getDateRange(props.tripObj)}</p>
<p>{props.tripObj.description}</p>
<p>{getCollaboratorEmails(props.tripObj.collaborators)}</p>

{/* TODO(Issue 15): Add edit trip page. */}
Expand Down

0 comments on commit 8c5d98a

Please sign in to comment.