diff --git a/src/view/edit-point-view.js b/src/view/edit-point-view.js index 9f17184..d70feb0 100644 --- a/src/view/edit-point-view.js +++ b/src/view/edit-point-view.js @@ -96,7 +96,7 @@ export const editingPointView = (point, destinations, offersIds, isNewPoint) => ${type} ${generateDestinations(destinations, isDisabled)} @@ -138,7 +138,7 @@ export const editingPointView = (point, destinations, offersIds, isNewPoint) => - + ${destinationData ? ` Destination ${destinationData.description} @@ -146,7 +146,7 @@ export const editingPointView = (point, destinations, offersIds, isNewPoint) => ${createPhotosTemplates(destinationData.pictures)} - + ` : ''} ` diff --git a/src/view/point-view.js b/src/view/point-view.js index e058b30..4703809 100644 --- a/src/view/point-view.js +++ b/src/view/point-view.js @@ -13,9 +13,9 @@ const createOffersTemplates = (allOffers, checkedOffers) => { export const pointView = (point, destinations, offersIds) => { const {type, destination, startDate, endDate, price, isFavorite, offers} = point; - const dateFrom = startDate !== null ? humanizePointDate(startDate, 'DD/MM/YY HH:mm') : ''; - const dateTo = endDate !== null ? humanizePointDate(endDate, 'DD/MM/YY HH:mm') : ''; - const date = startDate !== null ? humanizePointDate(startDate, 'D MMMM') : ''; + const dateFrom = startDate !== null ? humanizePointDate(startDate, 'HH:mm') : ''; + const dateTo = endDate !== null ? humanizePointDate(endDate, 'HH:mm') : ''; + const date = startDate !== null ? humanizePointDate(startDate, 'MMM D') : ''; const allTypeOffers = offersIds.find((offer) => offer.type === type); const favoriteClass = isFavorite ? 'event__favorite-btn--active' : ''; const destinationData = destinations.find((dest) => dest.id === destination);
${destinationData.description}