Skip to content

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.

@vercel
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.

2 participants