определение особого квиза
This commit is contained in:
parent
4c666bee05
commit
dec5a23d69
@ -18,6 +18,8 @@ type TextProps = {
|
|||||||
|
|
||||||
export const Text = ({ currentQuestion }: TextProps) => {
|
export const Text = ({ currentQuestion }: TextProps) => {
|
||||||
const theme = useTheme();
|
const theme = useTheme();
|
||||||
|
const { settings } = useQuizData();
|
||||||
|
const spec = settings.cfg.spec
|
||||||
const { quizId } = useQuizData();
|
const { quizId } = useQuizData();
|
||||||
const { answers } = useQuizViewStore();
|
const { answers } = useQuizViewStore();
|
||||||
const isMobile = useRootContainerSize() < 650;
|
const isMobile = useRootContainerSize() < 650;
|
||||||
@ -50,6 +52,8 @@ export const Text = ({ currentQuestion }: TextProps) => {
|
|||||||
alignItems: "center"
|
alignItems: "center"
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
|
{
|
||||||
|
!Boolean(spec) &&
|
||||||
<CustomTextField
|
<CustomTextField
|
||||||
placeholder={currentQuestion.content.placeholder}
|
placeholder={currentQuestion.content.placeholder}
|
||||||
//@ts-ignore
|
//@ts-ignore
|
||||||
@ -65,6 +69,7 @@ export const Text = ({ currentQuestion }: TextProps) => {
|
|||||||
}
|
}
|
||||||
}}
|
}}
|
||||||
/>
|
/>
|
||||||
|
}
|
||||||
{currentQuestion.content.back && currentQuestion.content.back !== " " && (
|
{currentQuestion.content.back && currentQuestion.content.back !== " " && (
|
||||||
<Box sx={{ maxWidth: "400px", width: "100%", height: "300px", margin: "15px" }}>
|
<Box sx={{ maxWidth: "400px", width: "100%", height: "300px", margin: "15px" }}>
|
||||||
<img
|
<img
|
||||||
|
@ -48,6 +48,7 @@ export type QuizSettings = {
|
|||||||
};
|
};
|
||||||
|
|
||||||
export interface QuizConfig {
|
export interface QuizConfig {
|
||||||
|
spec: undefined | true,
|
||||||
type: QuizType;
|
type: QuizType;
|
||||||
noStartPage: boolean;
|
noStartPage: boolean;
|
||||||
startpageType: QuizStartpageType;
|
startpageType: QuizStartpageType;
|
||||||
|
@ -7,7 +7,7 @@ import QuizAnswerer from "../lib/components/QuizAnswerer";
|
|||||||
import { ApologyPage } from "../lib/components/ViewPublicationPage/ApologyPage";
|
import { ApologyPage } from "../lib/components/ViewPublicationPage/ApologyPage";
|
||||||
|
|
||||||
// const defaultQuizId = "45ef7f9c-784d-4e58-badb-f6b337f08ba0"; // branching
|
// 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
|
// const defaultQuizId = "ad7f5a87-b833-4f5b-854e-453706ed655c"; // linear
|
||||||
|
|
||||||
export default function App() {
|
export default function App() {
|
||||||
|
Loading…
Reference in New Issue
Block a user