-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Шаблонизируй это #8
Шаблонизируй это #8
Conversation
…сь, в css написал list-style-type: none;
Ваш пулреквест опубликован. Посмотреть можно здесь |
@@ -1,7 +1,7 @@ | |||
import { getRandomPoint } from '../mock/points.js'; | |||
import { mockOffers } from '../mock/offers.js'; | |||
import { mockDestinations } from '../mock/destination.js'; | |||
const POINT_COUNT = 3; //Количество поинтов (сколько раз отрисуется поинт getRandomPoint) | |||
const POINT_COUNT = 4; //Количество поинтов (сколько раз отрисуется поинт getRandomPoint) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Вот такие комментарии нужно переносить в названия идентификаторов. То есть в данном случае декларировать ее как POINT_COUNT_FOR_RENDER
, RENDERING_POINT_COUNT
.
const { basePrice, type, isFavorite} = point; | ||
const typeName = type[0].toUpperCase() + type.slice(1, type.length); | ||
|
||
const createEventOfferTemplate = (title, price) => (` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
шаблоны нужно будет поправить
🎓 Шаблонизируй это