-
Notifications
You must be signed in to change notification settings - Fork 619
[Dashboard] Remove use-scroll-position #5274
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
Conversation
|
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
|
Your org has enabled the Graphite merge queue for merging into mainAdd the label “merge-queue” to the PR and Graphite will automatically add it to the merge queue when it’s ready to merge. Or use the label “hotfix” to add to the merge queue as a hot fix. You must have a Graphite account and log in to Graphite in order to use the merge queue. Sign up using this link. |
This stack of pull requests is managed by Graphite. Learn more about stacking. |
| @@ -1,43 +1,20 @@ | |||
| import { Box, Container, Flex, useBreakpointValue } from "@chakra-ui/react"; | |||
| import { useScrollPosition } from "@n8tb1t/use-scroll-position"; | |||
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 navbar is only used in the few pages that (pretty sure) will be converted to Framer.
What it does is change the background color effects on scrolling down. We can achieve the same thing with useEffect(?) however I think it's not that big of a deal so we can just make it "static". (Less JS in overall)
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #5274 +/- ##
=======================================
Coverage 45.55% 45.56%
=======================================
Files 1068 1067 -1
Lines 55514 55487 -27
Branches 4029 4031 +2
=======================================
- Hits 25292 25282 -10
+ Misses 29532 29515 -17
Partials 690 690
*This pull request uses carry forward flags. Click here to find out more. |
size-limit report 📦
|
| backdropFilter={ | ||
| isScrolled ? "saturate(180%) blur(20px)" : "saturate(100%) blur(0px)" | ||
| } | ||
| bgColor="rgba(0,0,0,0)" |
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.
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.
ah
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.
@MananTank I gave it a default blur-20px.
This page is very soon to be deleted by so it's up to you. I'm fine with closing this PR (it was a weekend idea anyway)
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.
yeah let's not do this - also let's not waste time on pages that will be deleted or moved to framer soon, we have lots to do on "in app" pages :)
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.
Understood ^
MananTank
left a comment
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.
address comments
106b814 to
1e141f3
Compare
| backdropFilter={ | ||
| isScrolled ? "saturate(180%) blur(20px)" : "saturate(100%) blur(0px)" | ||
| } | ||
| bgColor="rgba(0,0,0,0)" |
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.
yeah let's not do this - also let's not waste time on pages that will be deleted or moved to framer soon, we have lots to do on "in app" pages :)



Problem solved
Short description of the bug fixed or feature added
PR-Codex overview
This PR primarily focuses on removing the dependency on
@n8tb1t/use-scroll-positionand refactoring theHomepageTopNavcomponent inTopnav.tsxto utilize@chakra-ui/reactfor styling and layout.Detailed summary
@n8tb1t/use-scroll-positiondependency frompackage.json.useScrollPositionhook fromHomepageTopNav.Box,Container, andFlexcomponents from@chakra-ui/reactfor layout.bgColorandbackdropFilterproperties in theBoxcomponent.