-
Notifications
You must be signed in to change notification settings - Fork 7
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
JUP 55 - Create Event Page #229
Conversation
BK2004
commented
May 7, 2024
- Created event page under /manage/[clubId]/create
- Added router procedure for creating events
- Create page has a preview of user event
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Really good overall. Only changes I can see is having either a success toast message whenever an event has successfully been created or redirect them to the new event page
> | ||
{event.club.name} | ||
</p> | ||
<div> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Add a bit more vertical space between the time and club name to make the card less empty
}, [router, watch, officerClubs]); | ||
|
||
const createMutation = api.event.create.useMutation({ | ||
onSuccess: () => { location.reload(); } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
On success either show a success message or redirect to the event page using Router.push