счётчик вопросов не показывается для ветвления
This commit is contained in:
parent
6fce3b3edb
commit
a229ea6f85
@ -47,14 +47,17 @@ export const Footer = ({ stepNumber, nextButton, prevButton }: FooterProps) => {
|
||||
{/*):(*/}
|
||||
{/* <NameplateLogoFQDark style={{ fontSize: "34px", width:"200px", height:"auto" }} />*/}
|
||||
{/*)}*/}
|
||||
{stepNumber !== null && (
|
||||
<Box sx={{ flexGrow: 1 }}>
|
||||
<Typography sx={{ color: theme.palette.text.primary }}>
|
||||
Вопрос {stepNumber} из {questionsAmount}
|
||||
</Typography>
|
||||
<Stepper activeStep={stepNumber} steps={questionsAmount} />
|
||||
</Box>
|
||||
)}
|
||||
{
|
||||
questions.every(({ content }) => content.rule.parentId !== "root") !== null // null when branching enabled
|
||||
&&
|
||||
stepNumber !== null && (
|
||||
<Box sx={{ flexGrow: 1 }}>
|
||||
<Typography sx={{ color: theme.palette.text.primary }}>
|
||||
Вопрос {stepNumber} из {questionsAmount}
|
||||
</Typography>
|
||||
<Stepper activeStep={stepNumber} steps={questionsAmount} />
|
||||
</Box>
|
||||
)}
|
||||
|
||||
<Box
|
||||
sx={{
|
||||
|
@ -3,7 +3,8 @@ import { useParams } from "react-router-dom";
|
||||
import QuizAnswerer from "../lib/components/QuizAnswerer";
|
||||
|
||||
// const defaultQuizId = "45ef7f9c-784d-4e58-badb-f6b337f08ba0"; // branching
|
||||
const defaultQuizId = "3c49550d-8c77-4788-bc2d-42586a261514"; //looooong header
|
||||
// const defaultQuizId = "b7dafa46-a535-4beb-b289-65253d14a951"; //looooong header
|
||||
const defaultQuizId = "3c49550d-8c77-4788-bc2d-42586a261514"; //тест визуала
|
||||
// const defaultQuizId = "ad7f5a87-b833-4f5b-854e-453706ed655c"; // linear
|
||||
|
||||
export default function App() {
|
||||
|
Loading…
Reference in New Issue
Block a user