-
Notifications
You must be signed in to change notification settings - Fork 16
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
Add new card design to pools #2413
Conversation
PR deployed in Google Cloud |
PR deployed in Google Cloud |
6687e92
to
39e7e16
Compare
a02e33b
to
7273884
Compare
a79a77a
to
c7d9d5e
Compare
0407c73
to
a317de5
Compare
3e3994d
to
bc878fb
Compare
</TextWithPlaceholder> | ||
return ( | ||
<Card | ||
marginRight={20} |
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.
this should be marked as an anchor tag for better semantics HTML. Should be as simple as as={a}
, you'll probably still have to remove the default styling on the a tag.
<Text as="span" variant="body3" color="textButtonPrimaryDisabled"> | ||
Min Investment | ||
</Text> | ||
{tranchesData?.map((tranche) => renderText(`${tranche.minInvestment}`))} |
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.
This looked too big in the preview, I think you need to convert it to decimal first
<StyledCard | ||
marginRight={20} | ||
marginBottom={20} | ||
onClick={() => navigate(`/pools/${poolId}`)} |
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.
Better would be to use a React Router Link instead. That'll render it as an a
too, but with an href
for better usability.
d77e883
to
65ab1db
Compare
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 🔥
#2391