Background: For V0, if registration is closed, the user doesn't see anything (such as a button that seays 'registration closed.') This could be confusing to both organizers and participants, so we should change this.
Acceptance Criteria:
- If registration is closed, display the button
- The button should state "Registration closed"
- The buttons should follow the visual examples below
Visual examples:
View the complete designs on Figma here
For event page visitors who are not organizers
Registration closed:
Event ended:
Additional notes for QA
The fix for this bug changes the logic for showing the various buttons ("Register for event", "Manage event", "You are attending") on the event page, both in the header and the dialog. If possible, please also make sure that the correct buttons are displayed in the following cases (behaviour should match what we have on master):
- User is blocked
- User is the organizer
- User is logged out
- User is a participant
- User is logged-in but not a participant