[TASK-7465] + [TASK-7458] : home screen cards#589
[TASK-7465] + [TASK-7458] : home screen cards#589Hugo0 merged 4 commits intofeat/registration-flowfrom
Conversation
|
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
|
Important Review skippedAuto reviews are disabled on base/target branches other than the default branch. 🗂️ Base branches to auto review (7)
Please check the settings in the CodeRabbit UI or the You can disable this status message by setting the Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media? 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
Hugo0
left a comment
There was a problem hiding this comment.
Overall lg! But needs some minor changes
src/app/(mobile-ui)/home/page.tsx
Outdated
| const cardWidth = 300 | ||
| const cardMargin = 16 | ||
|
|
||
| const BALANCE_VISIBILITY_KEY = 'peanut-balance-visibility' |
There was a problem hiding this comment.
nit, blocking: this seems like wrong place to define this - check out updatePeanutPreferences.
We should have all user preferences together, not separate in various files or various localstorage keys
There was a problem hiding this comment.
my bad, missed this one, gonna fix it 🫡
|
|
||
| // hide balance | ||
| const handleToggleBalanceVisibility = (e: React.MouseEvent<HTMLButtonElement>) => { | ||
| e.stopPropagation() |
There was a problem hiding this comment.
Q: What is e.stopPropagation for here?
There was a problem hiding this comment.
@Hugo0 added this to prevent bubbling, if you clicked on the hide button, it would take you to the respective wallet page, which shouldn't happen as all I wanted was to hide the balance, so to prevent that from happening, I added this stopPropagation method
| <motion.div className="h-full"> | ||
| <Card | ||
| className="h-full min-w-[300px] rounded-md text-black hover:cursor-pointer" | ||
| className="h-full min-w-[300px] rounded-xl bg-purple-4/20 text-black hover:cursor-pointer" |
There was a problem hiding this comment.
thought: we prob should rename our colors to primary, secondary etc
There was a problem hiding this comment.
@Hugo0 agreed, for this my suggestion would be to fix all the colors separately, after certain features are done. This is a small task but will need some time. Happy to tackle this on another spirint :)
d94b582 to
191d256
Compare
d3a4afe to
291fe4e
Compare
@Hugo0 side note, the base branch for this pr is the registration-flow branch since main was already merged in it