отправка на qid
Some checks failed
Deploy / CreateImage (push) Has been cancelled
Deploy / DeployService (push) Has been cancelled

This commit is contained in:
Nastya 2025-04-21 21:06:21 +03:00
parent 7243ae77f1
commit ee62067ed3
3 changed files with 16 additions and 10 deletions

@ -125,7 +125,7 @@ export const UploadFile = ({ currentQuestion, setModalWarningType, isSending, se
<UploadIcon />
<Box>
<Typography sx={{ color: "#9A9AAF", fontWeight: 500 }}>
{UPLOAD_FILE_DESCRIPTIONS_MAP[currentQuestion.content.type].title}
{t(UPLOAD_FILE_DESCRIPTIONS_MAP[currentQuestion.content.type].title)}
</Typography>
<Typography
sx={{
@ -134,7 +134,7 @@ export const UploadFile = ({ currentQuestion, setModalWarningType, isSending, se
lineHeight: "19px",
}}
>
{UPLOAD_FILE_DESCRIPTIONS_MAP[currentQuestion.content.type].description}
{t(UPLOAD_FILE_DESCRIPTIONS_MAP[currentQuestion.content.type].description)}
</Typography>
</Box>
</Box>

@ -9,6 +9,7 @@ const defaultQuizId = "3c49550d-8c77-4788-bc2d-42586a261514"; //тест виз
export default function App() {
const quizId = useParams().quizId || "";
console.log(quizId);
return (
<Box

@ -1,7 +1,7 @@
import { createRoot } from "react-dom/client";
import { RouteObject, RouterProvider, createBrowserRouter, useParams } from "react-router-dom";
import { RouteObject, RouterProvider, createBrowserRouter } from "react-router-dom";
import App from "./App";
import { StrictMode, lazy, useEffect } from "react";
import { StrictMode, lazy } from "react";
import "./i18n/i18n";
const routes: RouteObject[] = [
@ -9,12 +9,17 @@ const routes: RouteObject[] = [
path: "/",
children: [
{
index: true,
element: <App />,
},
{
path: ":quizId",
element: <App />,
path: ":lang?", // Опциональный языковой сегмент
children: [
{
index: true,
element: <App />,
},
{
path: ":quizId", // ID квиза
element: <App />,
},
],
},
],
},