-
Notifications
You must be signed in to change notification settings - Fork 54
Don't show zero ammount message by default #2299
Conversation
|
@W3stside Updated so the approve doesn't count as touched. |
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'm not very convinced of the approach of keep adding stuff to the reduce state. I would think that for this, local state in the Claim/index
was more than enough.
@anxolin Good point, changed to local state. I started with different solution that required redux but after forgot that I don't need it anymore. |
@elena-zh Added the generic message suggestion but kept the no balance error by default, Michel also thinks we should show this error msg and the field is disabled. |
Thanks, @nenadV91 ! Could you please fix it? |
@elena-zh Added Max button css fix. |
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 now.
Thanks!
@@ -221,6 +223,9 @@ export default function InvestmentFlow({ hasClaims, isAirdropOnly, modalCbs }: I | |||
))} | |||
|
|||
{hasError && <InvestFlowValidation>Fix the errors before continuing</InvestFlowValidation>} | |||
{!hasError && someNotTouched && ( | |||
<InvestFlowValidation>Invest some amount of tokens for each option</InvestFlowValidation> |
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 would prefer something more generic than asking people to put money in hehe
<InvestFlowValidation>Invest some amount of tokens for each option</InvestFlowValidation> | |
<InvestFlowValidation>Required fields missing</InvestFlowValidation> |
What do you think @avsavsavs
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.
Wdyt of "Investment Amount is required to continue" If its too long, Then I would do "Investment Amount Required"
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.
Updated to Investment Amount is required to continue
Summary
Fixes #2285
I'm not really sure that we want this change but this is what I've got.