Skip to content
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

feat/loading shimmer #50

Merged
merged 3 commits into from
May 24, 2023
Merged

feat/loading shimmer #50

merged 3 commits into from
May 24, 2023

Conversation

NikitaCG
Copy link
Collaborator

@NikitaCG NikitaCG commented May 17, 2023

  • add load shimmer
  • refactor feed component logic
  • fix mocks data for story

@NikitaCG NikitaCG requested a review from niktverd May 17, 2023 13:41
@gravity-ui-bot
Copy link
Contributor

Preview is ready.

@NikitaCG NikitaCG changed the title WIP: feat/loading shimmer feat/loading shimmer May 17, 2023
@NikitaCG NikitaCG requested a review from VitaliiDC8 May 17, 2023 15:14
handleChangeQueryParams({page: value});
};
if (hasFirstPageQuery) {
// eslint-disable-next-line no-not-accumulator-reassign/no-not-accumulator-reassign
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you write it without eslint disable?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

refactored

/**
* @deprecated Metrika will be deleted after launch of analyticsEvents
*/
metrika.reachGoal(MetrikaCounter.CrossSite, BlogMetrikaGoalIds.showMore);
handleAnalytics();

const nextPage = currentPage + 1;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
const nextPage = currentPage + 1;
const nextPage = currentPage++;

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

src/blocks/Feed/Feed.tsx Outdated Show resolved Hide resolved
@NikitaCG NikitaCG merged commit ccdf08c into main May 24, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants