Skip to content

Commit

Permalink
4.15. Шаблонизируй то.
Browse files Browse the repository at this point in the history
  • Loading branch information
dashuulka committed Apr 14, 2024
1 parent d0ff2f9 commit ca0b911
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 8 deletions.
2 changes: 1 addition & 1 deletion src/mock/filter.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { filter } from "../utils/filter";
import { filter } from '../utils/filter';

function generateFilters(points) {
return Object.entries(filter).map(
Expand Down
6 changes: 3 additions & 3 deletions src/presenter/trip-presenter.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ export default class TripPresenter {

render(this.#listComponent,this.#listContainer);

this.#tripPoint.forEach(point => {
this.#tripPoint.forEach((point) => {
this.#renderPoint(point);
});
}
Expand Down Expand Up @@ -78,9 +78,9 @@ export default class TripPresenter {

function pointSubmitHandler() {
replaceEditToPoint();
document.removeEventListener('keydown', escKeyDown);
document.removeEventListener('keydown', escKeyDown);
}

render(pointComponent, this.#listComponent.element)
render(pointComponent, this.#listComponent.element);
}
}
2 changes: 1 addition & 1 deletion src/utils/filter.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { FilterType } from "../const";
import { FilterType } from '../const';

const filter = {
[FilterType.EVERYTHING]: (points) => points,
Expand Down
5 changes: 2 additions & 3 deletions src/view/event-list-empty-view.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import { extend } from "dayjs";
import AbstractView from "../framework/view/abstract-view";
import { createEmptyListPointsTemplate } from "../template/event-list-empty-template";
import AbstractView from '../framework/view/abstract-view';
import { createEmptyListPointsTemplate } from '../template/event-list-empty-template';

export default class EventListEmptyView extends AbstractView {
get template() {
Expand Down

0 comments on commit ca0b911

Please sign in to comment.