Skip to content

Commit

Permalink
move optimizelyScrollDepth out of Article page
Browse files Browse the repository at this point in the history
  • Loading branch information
louisearchibald committed Nov 15, 2024
1 parent 17f2e34 commit 4a9d986
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/app/components/JumpTo/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ import Text from '#app/components/Text';
import isLive from '#app/lib/utilities/isLive';
import { EventTrackingMetadata } from '#app/models/types/eventTracking';
import { OptimizelyContext } from '@optimizely/react-sdk';
import useOptimizelyScrollDepth from '#app/hooks/useOptimizelyScrollDepth';
import idSanitiser from '../../lib/utilities/idSanitiser';
import styles from './index.styles';

Expand Down Expand Up @@ -47,6 +48,8 @@ const JumpTo = ({ jumpToHeadings }: JumpToProps) => {

const titleId = 'jump-to-heading';

useOptimizelyScrollDepth();

return (
<nav
ref={viewRef}
Expand Down

0 comments on commit 4a9d986

Please sign in to comment.