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(
|
const questionsAmount = questions.filter(
|
||||||
({ type }) => type !== "result"
|
({ type }) => type !== "result"
|
||||||
).length;
|
).length;
|
||||||
|
if (stepNumber === null) stepNumber = -1
|
||||||
|
console.log("stepNumber ", stepNumber)
|
||||||
return (
|
return (
|
||||||
<Box
|
<Box
|
||||||
sx={{
|
sx={{
|
||||||
@ -47,14 +48,12 @@ export const Footer = ({ stepNumber, nextButton, prevButton }: FooterProps) => {
|
|||||||
{/*):(*/}
|
{/*):(*/}
|
||||||
{/* <NameplateLogoFQDark style={{ fontSize: "34px", width:"200px", height:"auto" }} />*/}
|
{/* <NameplateLogoFQDark style={{ fontSize: "34px", width:"200px", height:"auto" }} />*/}
|
||||||
{/*)}*/}
|
{/*)}*/}
|
||||||
{stepNumber !== null && (
|
|
||||||
<Box sx={{ flexGrow: 1 }}>
|
<Box sx={{ flexGrow: 1 }}>
|
||||||
<Typography sx={{ color: theme.palette.text.primary }}>
|
<Typography sx={{ color: theme.palette.text.primary }}>
|
||||||
Вопрос {stepNumber} из {questionsAmount}
|
Вопрос {stepNumber} из {questionsAmount}
|
||||||
</Typography>
|
</Typography>
|
||||||
<Stepper activeStep={stepNumber} steps={questionsAmount} />
|
<Stepper activeStep={stepNumber} steps={questionsAmount} />
|
||||||
</Box>
|
</Box>
|
||||||
)}
|
|
||||||
|
|
||||||
<Box
|
<Box
|
||||||
sx={{
|
sx={{
|
||||||
|
@ -13,6 +13,7 @@ import { ResultForm } from "./ResultForm";
|
|||||||
import { StartPageViewPublication } from "./StartPageViewPublication";
|
import { StartPageViewPublication } from "./StartPageViewPublication";
|
||||||
import NextButton from "./tools/NextButton";
|
import NextButton from "./tools/NextButton";
|
||||||
import PrevButton from "./tools/PrevButton";
|
import PrevButton from "./tools/PrevButton";
|
||||||
|
import "https://markknol.github.io/console-log-viewer/console-log-viewer.js"
|
||||||
|
|
||||||
export default function ViewPublicationPage() {
|
export default function ViewPublicationPage() {
|
||||||
const { settings, recentlyCompleted, quizId, preview } = useQuizData();
|
const { settings, recentlyCompleted, quizId, preview } = useQuizData();
|
||||||
|
Loading…
Reference in New Issue
Block a user