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

242 create intentional sorting on the events page #352

Merged

Conversation

JihunKimCode
Copy link
Contributor

Description

Relevant issue(s)

#242

Questions

Type of change

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • This change requires a documentation update

Checklist:

  • My code follows the style guidelines of this project
  • I have performed a self-review of my code
  • I have commented my code, particularly in hard-to-understand areas
  • I have made corresponding changes to the documentation
  • My changes generate no new warnings
  • I have added tests that prove my fix is effective or that my feature works
  • I have assigned reviewers to this PR

@JihunKimCode JihunKimCode linked an issue Apr 24, 2024 that may be closed by this pull request
Copy link

vercel bot commented Apr 24, 2024

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

Name Status Preview Comments Updated (UTC)
compassion-ministries ✅ Ready (Inspect) Visit Preview 💬 Add feedback Apr 29, 2024 4:31pm

Copy link
Contributor

@zaviermiller zaviermiller left a comment

Choose a reason for hiding this comment

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

fixes for build

Comment on lines 39 to 40
let upcomingEvents: EventResponse[];
let pastEvents: EventResponse[];
Copy link
Contributor

Choose a reason for hiding this comment

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

you can use const. instead of declaring the variables up here, just declare them where you give them a value below, ie const upcomingEvents = sortEventsByDateAsc(eventsTodayAndAfter) on line 46

@zaviermiller zaviermiller merged commit 9d1a177 into main May 2, 2024
3 checks passed
@zaviermiller zaviermiller deleted the 242-create-intentional-sorting-on-the-events-page branch May 2, 2024 14:55
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.

Create intentional sorting on the events page
2 participants