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: add toggle button for project sorting order #61

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

Conversation

Balastrong
Copy link
Owner

@Balastrong Balastrong commented Oct 12, 2024

This pull request to src/components/PublicProjectCard.tsx includes changes to add a new feature for toggling the order of project activities. The most important changes include importing the necessary useState and Button components, adding a state variable to manage the order, and introducing a button to toggle this state.

New feature for toggling activity order:


For more details, open the Copilot Workspace session.

Copy link

vercel bot commented Oct 12, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
myntenance ✅ Ready (Inspect) Visit Preview 💬 Add feedback Oct 12, 2024 8:14pm

@Balastrong Balastrong changed the title Add toggle button for project sorting order feat: add toggle button for project sorting order Oct 12, 2024
* Add `isReverseOrder` state variable to manage sorting order
* Add toggle button to switch between ascending and descending order
* Refactor order calculation into `calculateOrder` function
* Add comments to explain the purpose of each section of the code
* Add indicator on the toggle button to show the current sorting order
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.

1 participant