-
Notifications
You must be signed in to change notification settings - Fork 22
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
feat(multisig): Add feedbacks to creation form #1354
Conversation
- Add invalidation cases - Fix errors displaying for addresses - Add loader for await getCosmosAccount usage - Properly disable PrimaryButton
✅ Deploy Preview for testitori ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
✅ Deploy Preview for teritori-dapp ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
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.
Overall LGTM
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.
An issue: Update: Fixed => 40f3c36 |
Fixed => 40f3c36 |
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.
it's very weird that we have a different behavior before and after the first submit attempt IMO
setToast({ | ||
type: "error", | ||
mode: "normal", | ||
title: "Failed to create multisig", | ||
message, | ||
}); |
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.
why do you add this? there is already a wrapWithFeedback
around the submit call
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 forgot wrapWithFeedback
.
7666d91
}; | ||
|
||
const onAddressChange = async (index: number, value: string) => { | ||
const onValidate = async (index: number, value: string) => { |
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.
const onValidate = async (index: number, value: string) => { | |
const handleAddressChange = async (index: number, value: string) => { |
nit: it doesn't do only validation but also get the pubkey, name could be misleading
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.
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.
LGTM
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.
LGTM
This PR add error feedbacks to the Multisig creation form. I added 2 try catch
It also add a loader to the
PrimaryButton
.Existing errors
New errors