-
-
Notifications
You must be signed in to change notification settings - Fork 75
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
1045 Dynamically name recurring events #1092
Conversation
Evan will make css changes in a few PR. This is ready for review. |
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.
Looking great so far. Just a couple small changes.
@@ -116,7 +116,7 @@ const CreateNewEvent = ({ | |||
className="create-form-button" | |||
onClick={() => { | |||
if (formValues.eventType == null) { | |||
alert("Please select an event type."); | |||
setFormErrors("Event type is blank. Select an event type.") |
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.
This should be setting errors to an object with the key being the field name and the value being the error message:
setFormErrors({ eventType: "Event type is blank. Select an event type." })
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.
This is still not fixed.
@evanyang1 did you want to finish this or do we want to close this pr? |
Closing this because it still needs work and is not super relevant |
maybe i need to work on the css but from the logic point of view, fixes #1045