diff --git a/src/presenter/trip-presenter.js b/src/presenter/trip-presenter.js index 1bb8bae..d4c628a 100644 --- a/src/presenter/trip-presenter.js +++ b/src/presenter/trip-presenter.js @@ -66,18 +66,18 @@ export default class TripPresenter { function pointEditClickHandler() { replacePointToForm(); document.addEventListener('keydown', escKeyDownHandler); - }; + } function resetButtonClickHandler() { replaceFormToPoint(); document.removeEventListener('keydown', escKeyDownHandler); - }; + } function pointSubmitHandler() { replaceFormToPoint(); document.removeEventListener('keydown', escKeyDownHandler); - }; + } render(pointComponent, this.#pointListComponent.element); - } + }; } diff --git a/src/view/edit-point-view.js b/src/view/edit-point-view.js index 86bcaf9..31766d4 100644 --- a/src/view/edit-point-view.js +++ b/src/view/edit-point-view.js @@ -1,5 +1,5 @@ import AbstractView from '../framework/view/abstract-view.js'; -import { POINT_EMPTY, TYPES, CITIES } from "../const.js"; +import { POINT_EMPTY, TYPES, CITIES } from '../const.js'; import { formatStringToDateTime } from '../utils.js'; const createPointCitiesOptionsTemplate = () => { @@ -8,7 +8,7 @@ const createPointCitiesOptionsTemplate = () => { ${CITIES.map((city) => ``).join('')} ` ); -} +}; const createPointPhotosTemplate = (pointDestination) => { return ( @@ -17,7 +17,7 @@ const createPointPhotosTemplate = (pointDestination) => { `${picture.description}`).join('')} ` ); -} +}; const createPointTypesTemplate = (currentType) => { return TYPES.map((type) => @@ -25,7 +25,7 @@ const createPointTypesTemplate = (currentType) => { `).join(''); -} +}; const createPointOffersTemplate = ({ pointOffers }) => { const offerItems = pointOffers.map(offer => { @@ -42,7 +42,7 @@ const createPointOffersTemplate = ({ pointOffers }) => { }).join(''); return `
${offerItems}
`; -} +}; const createEditPointTemplate = ({ point, pointDestination, pointOffers }) => { const { basePrice, dateFrom, dateTo, offers, type } = point; @@ -107,7 +107,7 @@ const createEditPointTemplate = ({ point, pointDestination, pointOffers }) => { ` ); -} +}; export default class EditPointView extends AbstractView { #point = null; @@ -140,10 +140,10 @@ export default class EditPointView extends AbstractView { #formSubmitHandler = (evt) => { evt.preventDefault(); this.#onSubmitClick(); - } + }; #resetButtonClickHandler = (evt) => { evt.preventDefault(); this.#onResetClick(); - } + }; } diff --git a/src/view/point-view.js b/src/view/point-view.js index 25793b9..e5b3ae3 100644 --- a/src/view/point-view.js +++ b/src/view/point-view.js @@ -13,7 +13,7 @@ const createPointOffersTemplate = ({ pointOffers }) => { }).join(''); return ``; -} +}; const createPointTemplate = ({ point, pointDestination, pointOffers }) => { const { basePrice, dateFrom, dateTo, offers, isFavorite, type } = point; @@ -52,7 +52,7 @@ const createPointTemplate = ({ point, pointDestination, pointOffers }) => { ` ); -} +}; export default class PointView extends AbstractView { #point = null; @@ -81,5 +81,5 @@ export default class PointView extends AbstractView { #editClickHandler = (evt) => { evt.preventDefault(); this.#onEditClick(); - } + }; } diff --git a/src/view/sort-view.js b/src/view/sort-view.js index 0c775c9..0f71640 100644 --- a/src/view/sort-view.js +++ b/src/view/sort-view.js @@ -26,7 +26,7 @@ const createSortTemplate = () => { ` ); -} +}; export default class SortView extends AbstractView { get template() { diff --git a/src/view/trip-info-view.js b/src/view/trip-info-view.js index b7ffa98..49fbf6c 100644 --- a/src/view/trip-info-view.js +++ b/src/view/trip-info-view.js @@ -14,7 +14,7 @@ const createTripInfoTemplate = () => {

` ); -} +}; export default class TripInfoView extends AbstractView { get template() {