update шильдик показывается по логике булевого значения

This commit is contained in:
Nastya 2024-03-05 19:29:44 +03:00
parent 98980f5c09
commit 2eac28fd61
5 changed files with 8 additions and 6 deletions

@ -274,7 +274,7 @@ export const ContactForm = ({ currentQuestion, onShowResult }: Props) => {
 ознакомлен
</Typography>
</Box>
{!show_badge &&
{show_badge &&
<Box
component={Link}
target={"_blank"}

@ -56,7 +56,7 @@ export const Question = ({
}}>
<QuestionByType key={currentQuestion.id} question={currentQuestion} stepNumber={currentQuestionStepNumber} />
{!show_badge ? (quizThemes[settings.cfg.theme].isLight ? (
{show_badge ? (quizThemes[settings.cfg.theme].isLight ? (
<Link target={"_blank"} href={"https://quiz.pena.digital"}>
<NameplateLogoFQ style={{ fontSize: "34px", width: "200px", height: "auto" }} />
</Link>

@ -124,7 +124,7 @@ export const ResultForm = ({ resultQuestion }: ResultFormProps) => {
px: "20px",
}}
>
{!show_badge &&
{show_badge &&
<Box
component={Link}
target={"_blank"}

@ -240,7 +240,7 @@ export const StartPageViewPublication = () => {
</Typography>
</Box>
{!show_badge &&
{show_badge &&
<Box
component={Link}
target={"_blank"}

@ -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 = "26f2e98b-06ac-4e6c-b82e-0793e2768310"; //looooong header
const defaultQuizId = "cde381db-8ccb-402c-b55f-2c814be9bf25"; //looooong header
// const defaultQuizId = "ad7f5a87-b833-4f5b-854e-453706ed655c"; // linear
export default function App() {
@ -25,7 +25,9 @@ export default function App() {
return (
<Box sx={{
height: "100dvh",
// height: "100dvh",
height: "600px",
width: "600px",
}}>
<QuizAnswerer
quizSettings={data}