From f4ea6b15a76170ea2a9c70a51457280877cfb125 Mon Sep 17 00:00:00 2001 From: Nastya Date: Wed, 2 Apr 2025 05:26:55 +0300 Subject: [PATCH] skeleton in edit page --- src/pages/startPage/EditPage.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/pages/startPage/EditPage.tsx b/src/pages/startPage/EditPage.tsx index 44e75139..89dabfc4 100755 --- a/src/pages/startPage/EditPage.tsx +++ b/src/pages/startPage/EditPage.tsx @@ -1,4 +1,4 @@ -import { Box, useMediaQuery, useTheme } from "@mui/material"; +import { Box, Skeleton, useMediaQuery, useTheme } from "@mui/material"; import { updateQuiz, setCurrentStep } from "@root/quizes/actions"; import { useCurrentQuiz } from "@root/quizes/hooks"; import { useQuizStore } from "@root/quizes/store"; @@ -101,7 +101,7 @@ export default function EditPage({ lastScroll = mainBlock.current.scrollTop; }; - if (!quizConfig) return <>; + if (!quizConfig) return ; const isConditionMet = [1].includes(currentStep) && quizConfig.type !== "form";