-
-
Notifications
You must be signed in to change notification settings - Fork 27
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
chore: rule creation UI changes/additions #1574
base: main
Are you sure you want to change the base?
Conversation
- tweaked some margins to align better and more consistently.
onClick={(e) => { | ||
e.preventDefault() | ||
props.onOpenHelpModal() | ||
}} |
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.
You don't need preventDefault here, set the type to button. By default it'll be type=submit when in a <form>
: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/button#type
onClick={(e) => { | |
e.preventDefault() | |
props.onOpenHelpModal() | |
}} | |
type="button" | |
onClick={props.onOpenHelpModal} |
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.
No way that is the only thing you saw that needed an update/change.
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.
I haven't finished yet, I started and got tired 😆 . I'll have more of a look soon!
Wanted to get this out there so you could take a look. This has been needed for a long time, and I think I am on the right track with the layout.