определение особого квиза

This commit is contained in:
Nastya 2024-02-20 22:15:53 +03:00
parent 4c666bee05
commit dec5a23d69
3 changed files with 7 additions and 1 deletions

@ -18,6 +18,8 @@ type TextProps = {
export const Text = ({ currentQuestion }: TextProps) => {
const theme = useTheme();
const { settings } = useQuizData();
const spec = settings.cfg.spec
const { quizId } = useQuizData();
const { answers } = useQuizViewStore();
const isMobile = useRootContainerSize() < 650;
@ -50,6 +52,8 @@ export const Text = ({ currentQuestion }: TextProps) => {
alignItems: "center"
}}
>
{
!Boolean(spec) &&
<CustomTextField
placeholder={currentQuestion.content.placeholder}
//@ts-ignore
@ -65,6 +69,7 @@ export const Text = ({ currentQuestion }: TextProps) => {
}
}}
/>
}
{currentQuestion.content.back && currentQuestion.content.back !== " " && (
<Box sx={{ maxWidth: "400px", width: "100%", height: "300px", margin: "15px" }}>
<img

@ -48,6 +48,7 @@ export type QuizSettings = {
};
export interface QuizConfig {
spec: undefined | true,
type: QuizType;
noStartPage: boolean;
startpageType: QuizStartpageType;

@ -7,7 +7,7 @@ import QuizAnswerer from "../lib/components/QuizAnswerer";
import { ApologyPage } from "../lib/components/ViewPublicationPage/ApologyPage";
// const defaultQuizId = "45ef7f9c-784d-4e58-badb-f6b337f08ba0"; // branching
const defaultQuizId = "cde381db-8ccb-402c-b55f-2c814be9bf25"; //looooong header
const defaultQuizId = "26f2e98b-06ac-4e6c-b82e-0793e2768310"; //looooong header
// const defaultQuizId = "ad7f5a87-b833-4f5b-854e-453706ed655c"; // linear
export default function App() {