Skip to content

Backbutton#102

Open
shashankxrm wants to merge 4 commits intoDevSyncx:mainfrom
shashankxrm:backbutton
Open

Backbutton#102
shashankxrm wants to merge 4 commits intoDevSyncx:mainfrom
shashankxrm:backbutton

Conversation

@shashankxrm
Copy link

🚀 Pull Request Checklist

Please ensure the following before requesting a review:

  • ✅ My issue is assigned to me, and I have not taken up another task simultaneously.(unassigned issue)
  • 🔁 I have pulled the latest changes from the main branch.
  • 🧪 My code is tested and does not break existing functionality.
  • 📚 I have added/updated documentation wherever necessary.
  • 🧹 My code follows the project’s coding standards.
  • ✍️ My commits are clear and meaningful.
  • 🧾 I have linked the issue this PR addresses with Closes #<issue_number>.

📌 Related Issue

Closes #100

🧠 Description

Description

  • Added a reusable BackButton component using TailwindCSS and ShadCN UI.
  • Created a PageWithBackButton layout wrapper to automatically display the back button on all non-home routes.
  • Updated App.jsx to wrap all relevant routes with the new layout.
  • Removed redundant direct usage of BackButton from the profile page.

Benefits

  • Consistent navigation experience across desktop and mobile.
  • Clean, maintainable, and reusable implementation.
  • Easy to extend to new pages in the future.

Testing

  • Verified back button appears on all pages except home.
  • Navigation works as expected (back to previous page or dashboard).

✅ Type of Change

  • 🐞 Bug fix
  • 💡 Feature
  • 🧹 Code cleanup/refactor
  • 🧪 Test cases
  • 📚 Docs update

@vercel
Copy link

vercel bot commented Sep 8, 2025

@shashankxrm is attempting to deploy a commit to the Annanya's projects Team on Vercel.

A member of the Team first needs to authorize it.

@Annanyatiwary4
Copy link
Collaborator

@shashankxrm, please adhere to the contributing guidelines before submitting any PR. Specifically, the guidelines state that pull requests will be automatically rejected if the issue has not been assigned to you. Please take care of that and try to get assigned the issue first before start working on it.

@shashankxrm
Copy link
Author

@shashankxrm, please adhere to the contributing guidelines before submitting any PR. Specifically, the guidelines state that pull requests will be automatically rejected if the issue has not been assigned to you. Please take care of that and try to get assigned the issue first before start working on it.

Sure, I will take care of that from now.

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.

# 🔙 Add Back Button to all the pages

2 participants