Skip to content

Commit

Permalink
add view
Browse files Browse the repository at this point in the history
  • Loading branch information
Tatyana-js committed Sep 25, 2024
1 parent ad12db2 commit 6f00842
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/view.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ export default (elements, i18n, state) => {

const renderFeeds = () => {
const feedContainer = document.querySelector('.feeds');
renderBlock(t('feedTitle'));
const blok = renderBlock(t('feedTitle'));
const lists = document.createElement('ul');
lists.classList.add('list-group', 'border-0', 'rounded-0');

Expand All @@ -45,13 +45,13 @@ export default (elements, i18n, state) => {

li.append(h3, p);
lists.append(li);
feedContainer.append(lists);
feedContainer.append(blok, lists);
});
};

const renderPosts = () => {
const postsContainer = document.querySelector('.posts');
renderBlock(t('postsTitle'));
const post = renderBlock(t('postsTitle'));
const lists = document.createElement('ul');
lists.classList.add('list-group', 'border-0', 'rounded-0');

Expand All @@ -75,7 +75,7 @@ export default (elements, i18n, state) => {

li.append(link, button);
lists.append(li);
postsContainer.append(lists);
postsContainer.append(post, lists);
});
};

Expand Down

0 comments on commit 6f00842

Please sign in to comment.