From 3ae36f174625171c1323c18626a87435e40e3120 Mon Sep 17 00:00:00 2001 From: FireSpirit171 Date: Thu, 19 Dec 2024 02:53:16 +0300 Subject: [PATCH] delete: achievments --- src/components/ProfileData/ProfileData.ts | 20 ++------------------ 1 file changed, 2 insertions(+), 18 deletions(-) diff --git a/src/components/ProfileData/ProfileData.ts b/src/components/ProfileData/ProfileData.ts index bd3d2f0..987563c 100644 --- a/src/components/ProfileData/ProfileData.ts +++ b/src/components/ProfileData/ProfileData.ts @@ -64,11 +64,7 @@ class ProfileData { reviews: { title: 'Отзывы', action: this.#renderReviews.bind(this), - }, - achievments: { - title: 'Достижения', - action: this.#renderAchievments.bind(this), - }, + } }; this.#content = document.createElement('div'); @@ -571,23 +567,13 @@ class ProfileData { } } - //TODO Когда карты появятся #renderMap() { this.#content.replaceChildren(); this.#content.classList.remove('y-scroll'); this.#content.parentElement?.classList.remove( 'fix-bottom-right-border' ); - // const wrapper = document.createElement('div'); - // wrapper.id = 'wrapper'; - // wrapper.classList.add('data-container__wrapper'); - // const map = document.createElement('img'); - // map.classList.add('data-container__wrapper__img'); - // map.src = '/myMap.jpg'; - - // wrapper.appendChild(map); - // this.#content.appendChild(wrapper); const journeyMap = new JourneyMap(); journeyMap.render(this.#content); } @@ -616,8 +602,6 @@ class ProfileData { } } - #renderAchievments() {} - async #renderGraphic() { this.#content.replaceChildren(); const reviews = await this.#getReviews(); @@ -667,7 +651,7 @@ class ProfileData { ); document - .getElementById('data-container') + .getElementById('data-container')! .classList.remove('mobile-hidden'); this.#addCheckedRadio();