diff --git a/src/components/MaritimeFlagQuiz.js b/src/components/MaritimeFlagQuiz.js index bf415c8..d69e98d 100644 --- a/src/components/MaritimeFlagQuiz.js +++ b/src/components/MaritimeFlagQuiz.js @@ -44,6 +44,7 @@ const MaritimeFlagQuiz = () => { const [totalQuestions, setTotalQuestions] = useState(0); const [selectedAnswer, setSelectedAnswer] = useState(null); const [progress, setProgress] = useState(0); + const [imageLoaded, setImageLoaded] = useState(false); const shuffleArray = (array) => { for (let i = array.length - 1; i > 0; i--) { @@ -97,17 +98,23 @@ const MaritimeFlagQuiz = () => { Морские сигнальные флаги -
+

Что означает этот флаг?

+ {!imageLoaded && ( +
+
+
+ )} {`${currentFlag.name} setImageLoaded(true)} priority />