console
This commit is contained in:
parent
663118b42e
commit
8260cadf17
@ -17,7 +17,8 @@ export const Footer = ({ stepNumber, nextButton, prevButton }: FooterProps) => {
|
||||
const questionsAmount = questions.filter(
|
||||
({ type }) => type !== "result"
|
||||
).length;
|
||||
|
||||
if (stepNumber === null) stepNumber = -1
|
||||
console.log("stepNumber ", stepNumber)
|
||||
return (
|
||||
<Box
|
||||
sx={{
|
||||
@ -47,14 +48,12 @@ 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>
|
||||
)}
|
||||
|
||||
<Box
|
||||
sx={{
|
||||
|
@ -13,6 +13,7 @@ import { ResultForm } from "./ResultForm";
|
||||
import { StartPageViewPublication } from "./StartPageViewPublication";
|
||||
import NextButton from "./tools/NextButton";
|
||||
import PrevButton from "./tools/PrevButton";
|
||||
import "https://markknol.github.io/console-log-viewer/console-log-viewer.js"
|
||||
|
||||
export default function ViewPublicationPage() {
|
||||
const { settings, recentlyCompleted, quizId, preview } = useQuizData();
|
||||
|
Loading…
Reference in New Issue
Block a user