отправка на qid
This commit is contained in:
parent
7243ae77f1
commit
ee62067ed3
@ -125,7 +125,7 @@ export const UploadFile = ({ currentQuestion, setModalWarningType, isSending, se
|
|||||||
<UploadIcon />
|
<UploadIcon />
|
||||||
<Box>
|
<Box>
|
||||||
<Typography sx={{ color: "#9A9AAF", fontWeight: 500 }}>
|
<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>
|
||||||
<Typography
|
<Typography
|
||||||
sx={{
|
sx={{
|
||||||
@ -134,7 +134,7 @@ export const UploadFile = ({ currentQuestion, setModalWarningType, isSending, se
|
|||||||
lineHeight: "19px",
|
lineHeight: "19px",
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
{UPLOAD_FILE_DESCRIPTIONS_MAP[currentQuestion.content.type].description}
|
{t(UPLOAD_FILE_DESCRIPTIONS_MAP[currentQuestion.content.type].description)}
|
||||||
</Typography>
|
</Typography>
|
||||||
</Box>
|
</Box>
|
||||||
</Box>
|
</Box>
|
||||||
|
@ -9,6 +9,7 @@ const defaultQuizId = "3c49550d-8c77-4788-bc2d-42586a261514"; //тест виз
|
|||||||
|
|
||||||
export default function App() {
|
export default function App() {
|
||||||
const quizId = useParams().quizId || "";
|
const quizId = useParams().quizId || "";
|
||||||
|
console.log(quizId);
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<Box
|
<Box
|
||||||
|
21
src/main.tsx
21
src/main.tsx
@ -1,7 +1,7 @@
|
|||||||
import { createRoot } from "react-dom/client";
|
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 App from "./App";
|
||||||
import { StrictMode, lazy, useEffect } from "react";
|
import { StrictMode, lazy } from "react";
|
||||||
import "./i18n/i18n";
|
import "./i18n/i18n";
|
||||||
|
|
||||||
const routes: RouteObject[] = [
|
const routes: RouteObject[] = [
|
||||||
@ -9,12 +9,17 @@ const routes: RouteObject[] = [
|
|||||||
path: "/",
|
path: "/",
|
||||||
children: [
|
children: [
|
||||||
{
|
{
|
||||||
index: true,
|
path: ":lang?", // Опциональный языковой сегмент
|
||||||
element: <App />,
|
children: [
|
||||||
},
|
{
|
||||||
{
|
index: true,
|
||||||
path: ":quizId",
|
element: <App />,
|
||||||
element: <App />,
|
},
|
||||||
|
{
|
||||||
|
path: ":quizId", // ID квиза
|
||||||
|
element: <App />,
|
||||||
|
},
|
||||||
|
],
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
|
Loading…
Reference in New Issue
Block a user