fix: scroll issues

This commit is contained in:
averel10
2026-04-02 08:26:33 +02:00
parent bdbfe04e7e
commit 01c95658f4
4 changed files with 36 additions and 4 deletions

View File

@@ -1,5 +1,7 @@
'use client';
import { useEffect } from 'react';
interface CalibrationInfoViewProps {
onContinue: () => void;
hasExistingAnswers: boolean;
@@ -9,6 +11,13 @@ export default function CalibrationInfoView({
onContinue,
hasExistingAnswers,
}: CalibrationInfoViewProps) {
useEffect(() => {
window.scrollTo({
top: 0,
behavior: 'smooth',
});
}, []);
const handleContinue = () => {
onContinue();
};