-
Notifications
You must be signed in to change notification settings - Fork 54
Conversation
|
`url(${ | ||
symbol === 'GNO' ? LogoGNO : symbol === 'ETH' ? LogoETH : symbol === 'USDC' ? LogoUSDC : theme.blueShade3 | ||
}) no-repeat center/contain`}; | ||
background: ${({ symbol, theme }) => `url(${_getLogo(symbol) || theme.blueShade3}) no-repeat center/contain`}; |
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.
Nice! Thanks for doing this.
<span> | ||
<b>Investment amount:</b>{' '} | ||
<i> | ||
{formattedCost} {symbol} ({percentage}% of available investing opportunity) |
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.
@michelbio, should we style differently the non 100% cases?
not investing 100% is something that cannot be undone.
I would even omit the percentage if it's 100%.
This could be done in another PR
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.
Yes we can review.
() => | ||
freeClaims.concat(selectedClaims).map((claim) => _enhancedUserClaimToClaimWithInvestment(claim, investFlowData)), | ||
[freeClaims, investFlowData, selectedClaims] | ||
) |
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 two useMemos
right? the first one could already return allClaims. I say this cause we don't use freeClaims
selectedClaims
anywhere but in this memo
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've split because as explained with comments in the code, one section is used for step 1 and 2 while other section is only for step 2.
I don't want to update the step 2 path unnecessarily while on step 1
Summary
Wire up last investment step, the investment summary
To Test
Accounts