From a7bc912db3462e6d28969b12f3414c14717bc4cc Mon Sep 17 00:00:00 2001 From: poignatov Date: Tue, 6 Jan 2026 14:34:28 +0300 Subject: [PATCH] =?UTF-8?q?v3.0.0:=20=D0=94=D0=BE=D0=B1=D0=B0=D0=B2=D0=BB?= =?UTF-8?q?=D0=B5=D0=BD=20=D0=BE=D0=B1=D1=80=D0=B0=D1=82=D0=BD=D1=8B=D0=B9?= =?UTF-8?q?=20=D0=BF=D0=BE=D0=B2=D0=BE=D1=80=D0=BE=D1=82=20=D0=BA=D0=B0?= =?UTF-8?q?=D1=80=D1=82=D0=BE=D1=87=D0=BA=D0=B8=20=D0=B2=20=D1=82=D0=B5?= =?UTF-8?q?=D1=81=D1=82=D0=B5=20=D0=BF=D0=BE=20=D0=BA=D0=BB=D0=B8=D0=BA?= =?UTF-8?q?=D1=83?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- VERSION | 2 +- play-life-web/package.json | 2 +- play-life-web/src/components/TestWords.jsx | 12 ++++++++++-- 3 files changed, 12 insertions(+), 4 deletions(-) diff --git a/VERSION b/VERSION index 10c2c0c..4a36342 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -2.10.0 +3.0.0 diff --git a/play-life-web/package.json b/play-life-web/package.json index 2f763cd..82dbda9 100644 --- a/play-life-web/package.json +++ b/play-life-web/package.json @@ -1,6 +1,6 @@ { "name": "play-life-web", - "version": "2.10.0", + "version": "3.0.0", "type": "module", "scripts": { "dev": "vite", diff --git a/play-life-web/src/components/TestWords.jsx b/play-life-web/src/components/TestWords.jsx index 3c5b96d..cd7a6ab 100644 --- a/play-life-web/src/components/TestWords.jsx +++ b/play-life-web/src/components/TestWords.jsx @@ -128,7 +128,15 @@ function TestWords({ onNavigate, wordCount: initialWordCount, configId: initialC } const handleCardFlip = (wordId) => { - setFlippedCards(prev => new Set(prev).add(wordId)) + setFlippedCards(prev => { + const newSet = new Set(prev) + if (newSet.has(wordId)) { + newSet.delete(wordId) + } else { + newSet.add(wordId) + } + return newSet + }) } // Завершение теста @@ -432,7 +440,7 @@ function TestWords({ onNavigate, wordCount: initialWordCount, configId: initialC
!isFlipped && handleCardFlip(word.id)} + onClick={() => handleCardFlip(word.id)} >