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

replace instead of push route when changing tabs for more intuitive navigation #564

Merged
merged 1 commit into from
Oct 31, 2023

Conversation

geekflyer
Copy link
Contributor

@geekflyer geekflyer commented Jun 30, 2023

@geekflyer geekflyer requested a review from BriungRi June 30, 2023 01:59
@netlify
Copy link

netlify bot commented Jun 30, 2023

Deploy Preview for aptos-explorer ready!

Name Link
🔨 Latest commit 641be9d
🔍 Latest deploy log https://app.netlify.com/sites/aptos-explorer/deploys/654129aa723b020008a625bc
😎 Deploy Preview https://deploy-preview-564--aptos-explorer.netlify.app/
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@@ -29,20 +28,14 @@ type GoBackProps = {
to?: string;
Copy link
Contributor

@BriungRi BriungRi Jun 30, 2023

Choose a reason for hiding this comment

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

If the to behavior is being removed, I think to should be removed from the props so that the API for GoBack behaves as expected. The alternative would be to keep the to behavior in this component

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Oh. I'll just remove the GoBackProps type altogether since it's not used anymore.

Copy link
Contributor

@BriungRi BriungRi left a comment

Choose a reason for hiding this comment

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

Maybe just my opinion, but this makes navigation much better!

Left a comment, otherwise LGTM

@BriungRi BriungRi merged commit 1972a67 into main Oct 31, 2023
6 of 7 checks passed
@BriungRi BriungRi deleted the tab-history branch October 31, 2023 19:36
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