From ee62067ed3a91f73fac52b108df4b7a5203864f3 Mon Sep 17 00:00:00 2001 From: Nastya Date: Mon, 21 Apr 2025 21:06:21 +0300 Subject: [PATCH] =?UTF-8?q?=D0=BE=D1=82=D0=BF=D1=80=D0=B0=D0=B2=D0=BA?= =?UTF-8?q?=D0=B0=20=D0=BD=D0=B0=20qid?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../questions/File/UploadFile.tsx | 4 ++-- src/App.tsx | 1 + src/main.tsx | 21 ++++++++++++------- 3 files changed, 16 insertions(+), 10 deletions(-) diff --git a/lib/components/ViewPublicationPage/questions/File/UploadFile.tsx b/lib/components/ViewPublicationPage/questions/File/UploadFile.tsx index b40b613..810c78e 100644 --- a/lib/components/ViewPublicationPage/questions/File/UploadFile.tsx +++ b/lib/components/ViewPublicationPage/questions/File/UploadFile.tsx @@ -125,7 +125,7 @@ export const UploadFile = ({ currentQuestion, setModalWarningType, isSending, se - {UPLOAD_FILE_DESCRIPTIONS_MAP[currentQuestion.content.type].title} + {t(UPLOAD_FILE_DESCRIPTIONS_MAP[currentQuestion.content.type].title)} - {UPLOAD_FILE_DESCRIPTIONS_MAP[currentQuestion.content.type].description} + {t(UPLOAD_FILE_DESCRIPTIONS_MAP[currentQuestion.content.type].description)} diff --git a/src/App.tsx b/src/App.tsx index 2ad143e..a362bd3 100644 --- a/src/App.tsx +++ b/src/App.tsx @@ -9,6 +9,7 @@ const defaultQuizId = "3c49550d-8c77-4788-bc2d-42586a261514"; //тест виз export default function App() { const quizId = useParams().quizId || ""; + console.log(quizId); return ( , - }, - { - path: ":quizId", - element: , + path: ":lang?", // Опциональный языковой сегмент + children: [ + { + index: true, + element: , + }, + { + path: ":quizId", // ID квиза + element: , + }, + ], }, ], },