Skip to content

Commit

Permalink
Feat(registration)/filter participants (#1157)
Browse files Browse the repository at this point in the history
* Lagd nye knapper

* init

* refactor event stats component

* refactor event stats component

* filtering by year and study progress. works as expected

* Refactor searchParams condition in EventParticipants component

* added allergy filter

* Added allergy filter option for event administration.

* changed category name

* Added search by first name and last name

* Update changelog

* Added more filtering buttons

* Fixed has_paid filter and few qos tweaks

* updated pnpm on local machine

* fixed has_paid count bug and has_allergy count bug

---------

Co-authored-by: Josefine <Josefinehuffman@iclound.com>
Co-authored-by: Harry Linrui XU <xulr0820@hotmail.com>
  • Loading branch information
3 people authored Oct 28, 2024
1 parent 8ab71c4 commit d4c1877
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ const EventStatistics = ({ eventId, isPaid }: EventStatisticsProps) => {
active={Boolean(searchParams.get('has_paid'))}
key='has_paid'
label='Ikke betalt'
number={data.list_count - data.has_paid_count}
number={data.has_not_paid_count}
onClick={() => handleFiltering('has_paid', 'false')}
/>
)}
Expand Down
2 changes: 1 addition & 1 deletion src/types/Event.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,6 @@ export type EventStatistics = {
studyyears: Array<{ studyyear: Group['name']; amount: number }>;
studies: Array<{ study: Group['name']; amount: number }>;
has_allergy_count: number;
has_paid_count: number;
has_not_paid_count: number;
allow_photo_count: number;
};

0 comments on commit d4c1877

Please sign in to comment.