-
-
Notifications
You must be signed in to change notification settings - Fork 692
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
refactor: removed unnecessary state use for hover effect #3419
Conversation
WalkthroughThe changes in the Changes
Assessment against linked issues
Suggested labels
Suggested reviewers
Poem
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
Documentation and Community
|
✅ Deploy Preview for asyncapi-website ready!Built without sensitive environment variables
To edit notification comments on pull requests, go to your Netlify site configuration. |
✅ Deploy Preview for asyncapi-website ready!Built without sensitive environment variables
To edit notification comments on pull requests, go to your Netlify site configuration. |
⚡️ Lighthouse report for the changes in this PR:
Lighthouse ran on https://deploy-preview-3419--asyncapi-website.netlify.app/ |
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.
Actionable comments posted: 0
🧹 Outside diff range and nitpick comments (2)
pages/community/tsc.tsx (2)
84-85
: Add space before self-closing tagThe implementation looks good, but there's a minor formatting issue.
- <IconGithub className='hover:fill-black'/> + <IconGithub className='hover:fill-black' />🧰 Tools
🪛 eslint
[error] 85-85: Insert
·
(prettier/prettier)
98-99
: Add space before self-closing tagThe implementation looks good with brand-appropriate hover color, but there's a minor formatting issue.
- <IconLinkedIn className='hover:fill-linkedin'/> + <IconLinkedIn className='hover:fill-linkedin' />🧰 Tools
🪛 eslint
[error] 99-99: Insert
·
(prettier/prettier)
📜 Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
📒 Files selected for processing (1)
pages/community/tsc.tsx
(3 hunks)
🧰 Additional context used
🪛 eslint
pages/community/tsc.tsx
[error] 85-85: Insert ·
(prettier/prettier)
[error] 99-99: Insert ·
(prettier/prettier)
🔇 Additional comments (2)
pages/community/tsc.tsx (2)
70-71
: LGTM! Efficient hover effect implementation
The change successfully replaces state-based hover management with Tailwind's utility classes. Using hover:fill-black
is more performant than React state management for this use case.
Line range hint 70-99
: Verify server component conversion potential
Now that state management for hover effects has been removed, let's verify if the component can be converted to a server component for better performance.
🧰 Tools
🪛 eslint
[error] 81-83: Block must not be padded by blank lines.
(padded-blocks)
[error] 82-83: Delete ⏎
(prettier/prettier)
[error] 85-85: Insert ·
(prettier/prettier)
c971b16
to
24db94a
Compare
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #3419 +/- ##
=======================================
Coverage 86.59% 86.59%
=======================================
Files 21 21
Lines 664 664
=======================================
Hits 575 575
Misses 89 89 ☔ View full report in Codecov by Sentry. |
@SahilDahekar update this branch. |
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
/update |
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.
Thanks for the changes @SahilDahekar 🚢
/rtm |
Description
useState()
use for hover effect on icon present on community member cards.onMouseEnter()
used in the classname.Related issue(s)
Resolves #3413
Summary by CodeRabbit
New Features
Bug Fixes