Skip to content

Commit

Permalink
Delete(JS) Remove logs
Browse files Browse the repository at this point in the history
  • Loading branch information
ViktorSvertoka committed Dec 17, 2023
1 parent e125ef3 commit 29c4f5d
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 18 deletions.
3 changes: 0 additions & 3 deletions src/js/00-api.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,6 @@ export default class APIService {
try {
this.page += 1;

console.log(
`${this.baseURL}exercises?${params1}=${params2}&page=1&limit=10`
);
const response = await axios.get(
`${this.baseURL}exercises?${params1}=${params2}&page=1&limit=10`
);
Expand Down
14 changes: 1 addition & 13 deletions src/js/05-modal-exercises.js
Original file line number Diff line number Diff line change
Expand Up @@ -178,18 +178,6 @@ function createMarkup({
<p class="modal-exercises__description">${description}</p>
</div>
</div>
<<<<<<< HEAD
=======
</div>
<div class="modal-exercises__btn-container">
<button class="modal-exercises__btn-favorites modal-exercises__btn" type="button" data-id="${_id}">
Add to favorites
<svg class="btn-favorites__icon">
<use href="${icons}#icon-favorites"></use>
</svg>
</button>
<button class="modal-exercises__btn-rating modal-exercises__btn" type="button">Give a rating</button>
>>>>>>> 8c3641318954f88879c80815f488b558eacce8bc
</div>
<div class="modal-exercises__btn-container">
<button class="modal-exercises__btn-favorites modal-exercises__btn" type="button" data-id="${_id}">
Expand Down Expand Up @@ -232,7 +220,7 @@ function toggleBtn() {
} else {
btnModalFavorites.innerHTML = createAddToFavoritesMarkup();
localFavorite == null
? console.log('ku ku')
? console.log('')
: setTimeout(() => {
createMarkupFavorite();
}, 100);
Expand Down
2 changes: 1 addition & 1 deletion src/js/10-favorites.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ async function onExercisesCardClick(event) {
} else {
array.push(exerciseData);
}
console.log('btn', array);

localStorage.setItem('exerciseData', JSON.stringify(array));
} catch (error) {
console.log(error);
Expand Down
1 change: 0 additions & 1 deletion src/js/14-added-local.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ buttonFavorite.addEventListener('click', renderFavorite());

export function renderFavorite() {
const local = JSON.parse(localStorage.getItem('exerciseData'));
console.log('favorite', local);

if (local == null || local.length === 0) {
return;
Expand Down

0 comments on commit 29c4f5d

Please sign in to comment.