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

Reorder categories in the directory #462

Open
wants to merge 4 commits into
base: main
Choose a base branch
from
Open

Conversation

hmalik88
Copy link
Contributor

@hmalik88 hmalik88 commented Aug 30, 2024

Closes #2964

Copy link
Contributor

github-actions bot commented Aug 30, 2024

Commit 558cdb10eb420316c2e265a7f7f157c4b2f82826 successfully pushed to staging website:

https://metamask.github.io/snaps-directory-staging/pr/462/


// According to the type definition, `navigate` returns a promise, but in
// practice it does not.
// eslint-disable-next-line @typescript-eslint/no-floating-promises
navigate('/explore', { replace: true });
navigate('/explore', { replace: true, state: { isFromCategory: true } });
Copy link
Member

Choose a reason for hiding this comment

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

I'm not sure I follow why this is necessary. We can change the ordering by dispatching setOrder?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

The explore page should always be on latest ordering, how would I know if the explore page was rendered by it being navigated to via the category page or not.

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.

2 participants