-
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
2127
Disable submit proposal when submitting
#2131
Conversation
✅ Deploy Preview for decent-interface-dev ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
shipit |
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.
Couple minor optional comments, so leaving my approval - feel free to make these changes or ignore them
@@ -140,7 +140,12 @@ export default function RoleFormCreateProposal({ close }: { close: () => void }) | |||
> | |||
{t('cancel', { ns: 'common' })} | |||
</Button> | |||
<Button onClick={() => handleSubmit()}>{t('sendAssetsSubmit')}</Button> | |||
<Button | |||
onClick={() => handleSubmit()} |
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.
Can't it be just onClick={handleSubmit}
?
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.
Nope. This technically should just work as type="submit"
but it for some reason doesn't work. the typing of handleSubmit
doesn't allow for it to be formatted that way unfortunately
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.
works for me
Suspect IssuesThis pull request was deployed and Sentry observed the following issues:
Did you find this useful? React with a 👍 or 👎 |
Fixes #2127