event specific signup page
This MR implements a feature to relay users to a event specific signup page such that only one event is fetched from the server if they reload the page.
The event specific page is at events/signup/[eventId]
. The implementation is in the SignUpPage (lib/components/events/signUpPage.js
) component and comprises a Layout, an EventSummary, and an EventDetails component.
The EventDetails component includes the entire signup logic and it is already used on the current signup page. We introduce an additional prop relay
for this component.
In the case relay == True
we display a redirection button on the EventsListsPage to the new SignUpPage in the following cases:
- Event registration has not started yet
- Event registration is open & user is not logged in
- Event registration is open & user is logged in
The EventDetails logic in the following cases is not changed, I.e. no button to the signup page will be displayed:
- The event has no registration
- The event registration is over
- The user is logged in and the signup status is not loaded (amiv spinner appears)
In the case relay==False
the EventDetails component follows the existing logic without any changes.