-
Notifications
You must be signed in to change notification settings - Fork 1
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: earn tab texts #2344
feat: earn tab texts #2344
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
apps/web/src/views/Earn/Earn.tsx
Outdated
subtitle={"Maximize your tez with staking.com.\nSecure, efficient, and simple."} | ||
title="Boost your rewards" | ||
/> | ||
delegate === null || delegate === undefined ? ( |
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.
Try not to use nested ternary operators, instead it is better to use if/else inside getCtaMessage
which will return the appropriate jsx
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.
Approve with small comment
apps/web/src/views/Earn/Earn.tsx
Outdated
return <VerifyMessage />; | ||
} | ||
|
||
if (delegate === null || delegate === undefined) { |
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.
if (delegate === null || delegate === undefined) { | |
!delegate { |
Proposed changes
Earn tab text depends on account state:
Start earning
Stake
Manage funds
Design: Notion
UMA-1114
Types of changes
Steps to reproduce
See
Earn
tab.Screenshots
Add the screenshots of how the app used to look like and how it looks now
Before:
![image](https://private-user-images.githubusercontent.com/174794971/408615015-afe53852-e1d5-44ea-b952-f406b025460e.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MzkwMjU5NzcsIm5iZiI6MTczOTAyNTY3NywicGF0aCI6Ii8xNzQ3OTQ5NzEvNDA4NjE1MDE1LWFmZTUzODUyLWUxZDUtNDRlYS1iOTUyLWY0MDZiMDI1NDYwZS5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjUwMjA4JTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI1MDIwOFQxNDQxMTdaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT1jZGM3YzcxN2FiNzk3M2ZmNmIzYmI2N2VmNmQ2MGJhZWQwMmQ2YWVjZmQ4NWNkNDA0MTUzMWJmYWEwNjM0ZTVhJlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCJ9.T1lcrpPRzoI14akHHnEMGoBJzoti0VSpBO2j6Pnbfug)
Checklist