From a229ea6f85485185aa5a207444e300fd782dd6bc Mon Sep 17 00:00:00 2001 From: Nastya Date: Wed, 10 Apr 2024 18:16:19 +0300 Subject: [PATCH] =?UTF-8?q?=D1=81=D1=87=D1=91=D1=82=D1=87=D0=B8=D0=BA=20?= =?UTF-8?q?=D0=B2=D0=BE=D0=BF=D1=80=D0=BE=D1=81=D0=BE=D0=B2=20=D0=BD=D0=B5?= =?UTF-8?q?=20=D0=BF=D0=BE=D0=BA=D0=B0=D0=B7=D1=8B=D0=B2=D0=B0=D0=B5=D1=82?= =?UTF-8?q?=D1=81=D1=8F=20=D0=B4=D0=BB=D1=8F=20=D0=B2=D0=B5=D1=82=D0=B2?= =?UTF-8?q?=D0=BB=D0=B5=D0=BD=D0=B8=D1=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lib/components/ViewPublicationPage/Footer.tsx | 19 +++++++++++-------- src/App.tsx | 3 ++- 2 files changed, 13 insertions(+), 9 deletions(-) diff --git a/lib/components/ViewPublicationPage/Footer.tsx b/lib/components/ViewPublicationPage/Footer.tsx index 25beeb9..3ea7a9e 100644 --- a/lib/components/ViewPublicationPage/Footer.tsx +++ b/lib/components/ViewPublicationPage/Footer.tsx @@ -47,14 +47,17 @@ export const Footer = ({ stepNumber, nextButton, prevButton }: FooterProps) => { {/*):(*/} {/* */} {/*)}*/} - {stepNumber !== null && ( - - - Вопрос {stepNumber} из {questionsAmount} - - - - )} + { + questions.every(({ content }) => content.rule.parentId !== "root") !== null // null when branching enabled + && + stepNumber !== null && ( + + + Вопрос {stepNumber} из {questionsAmount} + + + + )}