Skip to content

Commit

Permalink
delete: achievments
Browse files Browse the repository at this point in the history
  • Loading branch information
FireSpirit171 committed Dec 18, 2024
1 parent 76355ed commit 3ae36f1
Showing 1 changed file with 2 additions and 18 deletions.
20 changes: 2 additions & 18 deletions src/components/ProfileData/ProfileData.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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');
Expand Down Expand Up @@ -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);
}
Expand Down Expand Up @@ -616,8 +602,6 @@ class ProfileData {
}
}

#renderAchievments() {}

async #renderGraphic() {
this.#content.replaceChildren();
const reviews = await this.#getReviews();
Expand Down Expand Up @@ -667,7 +651,7 @@ class ProfileData {
);

document
.getElementById('data-container')
.getElementById('data-container')!
.classList.remove('mobile-hidden');

this.#addCheckedRadio();
Expand Down

0 comments on commit 3ae36f1

Please sign in to comment.