Skip to content

Commit

Permalink
fix(progress-bar): use use scroll hook instead of deprecated use view…
Browse files Browse the repository at this point in the history
…port scroll
  • Loading branch information
codingcodax committed Jan 18, 2023
1 parent 6ffbab2 commit e6cd823
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/components/atoms/ProgressBar.tsx
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
import { motion, useViewportScroll } from 'framer-motion';
import { motion, useScroll } from 'framer-motion';

import { Box } from '~/components/ui';

const BoxFramer = motion(Box);

const ProgressBar = () => {
const { scrollYProgress } = useViewportScroll();
const { scrollYProgress } = useScroll();

return (
<Box
Expand Down

0 comments on commit e6cd823

Please sign in to comment.