Skip to content
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

Merged
merged 2 commits into from
Jul 11, 2024

Conversation

Da-Colon
Copy link
Contributor

Fixes #2127

@Da-Colon Da-Colon requested review from adamgall, DarksightKellar, mudrila and a team July 10, 2024 19:24
@Da-Colon Da-Colon self-assigned this Jul 10, 2024
Copy link

netlify bot commented Jul 10, 2024

Deploy Preview for decent-interface-dev ready!

Name Link
🔨 Latest commit 3a2af8f
🔍 Latest deploy log https://app.netlify.com/sites/decent-interface-dev/deploys/668f64d24224230008f06b03
😎 Deploy Preview https://deploy-preview-2131.app.dev.decentdao.org
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@adamgall
Copy link
Member

shipit

Copy link
Contributor

@mudrila mudrila left a 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()}
Copy link
Contributor

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}?

Copy link
Contributor Author

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

Copy link

@tomstuart123 tomstuart123 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

works for me

@adamgall adamgall merged commit 59e57f1 into develop Jul 11, 2024
7 checks passed
@adamgall adamgall deleted the issue/2127-disable-submit-button branch July 11, 2024 13:15
Copy link

sentry-io bot commented Jul 13, 2024

Suspect Issues

This pull request was deployed and Sentry observed the following issues:

Did you find this useful? React with a 👍 or 👎

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Roles Disable Submit Proposal button during proposal submission
5 participants