fix: top fade should be calculated on first render too

if page had been scrolled and refreshed the wrong initial value was used
This commit is contained in:
Petri Partio
2024-05-31 14:06:35 +03:00
parent ba41f50828
commit 93eba92f0c
2 changed files with 9 additions and 10 deletions

View File

@@ -1,6 +1,5 @@
'use client';
import Image from 'next/image';
import Link, { LinkProps } from 'next/link';
import Wrapper from './Wrapper';
import { useEffect, useRef, useState } from 'react';