Skip to content

Commit

Permalink
fix: hide header border when user scroll up the page (#956)
Browse files Browse the repository at this point in the history
  • Loading branch information
NikitaCG authored Jul 4, 2024
1 parent b9935ba commit 762061b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/navigation/components/Navigation/Navigation.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ export const Navigation: React.FC<NavigationProps> = ({data, logo, className}) =
if (!withBorderOnScroll) return () => {};

const showBorderOnScroll = () => {
if (!showBorder) {
if (!withBorder) {
setShowBorder(window.scrollY > 0);
}
};
Expand Down

0 comments on commit 762061b

Please sign in to comment.