Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
onLeave={({currentPosition}) => (
currentPosition === Waypoint.above && onAfter(href)
)}
topOffset={10}
onLeave={({ currentPosition }) => (
currentPosition === Waypoint.above && onAfter(href)
)}
topOffset={10}
onEnter={({ previousPosition }) => (
previousPosition === Waypoint.above && onBefore(href)
)}
onLeave={({ currentPosition }) => (
onEnter={({previousPosition}) => (
previousPosition === Waypoint.above && onBefore(href)
)}
onLeave={({currentPosition}) => (