diff --git a/lib/components/ViewPublicationPage/ContactForm.tsx b/lib/components/ViewPublicationPage/ContactForm.tsx index e2f96f6..64408e5 100644 --- a/lib/components/ViewPublicationPage/ContactForm.tsx +++ b/lib/components/ViewPublicationPage/ContactForm.tsx @@ -28,7 +28,7 @@ type Props = { export const ContactForm = ({ currentQuestion, onShowResult }: Props) => { const theme = useTheme(); - const { settings, questions, quizId } = useQuizData(); + const { settings, questions, quizId, show_badge } = useQuizData(); const [ready, setReady] = useState(false); const [name, setName] = useState(""); @@ -275,6 +275,7 @@ export const ContactForm = ({ currentQuestion, onShowResult }: Props) => {  ознакомлен + {show_badge && { Сделано на PenaQuiz + } + diff --git a/lib/components/ViewPublicationPage/Question.tsx b/lib/components/ViewPublicationPage/Question.tsx index 51c24cf..c5f7c82 100644 --- a/lib/components/ViewPublicationPage/Question.tsx +++ b/lib/components/ViewPublicationPage/Question.tsx @@ -73,7 +73,7 @@ export const Question = ({ prevButton, }: Props) => { const theme = useTheme(); - const { settings } = useQuizData(); + const { settings, show_badge } = useQuizData(); return ( - - {quizThemes[settings.cfg.theme].isLight ? ( - + {show_badge && ( + + {quizThemes[settings.cfg.theme].isLight ? ( - - ) : ( - + ) : ( - - )} - + )} + + )}