From 53ea9ae8e07c786b2c925cd502b2fbe41a0c46c7 Mon Sep 17 00:00:00 2001 From: yury Date: Sat, 22 Jun 2024 10:58:33 +0300 Subject: [PATCH] feat: add blur only one page --- .../Questionnaire/CustomAnswers/MultipleAnswers/index.tsx | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/components/pages/ABDesign/v1/components/Questionnaire/CustomAnswers/MultipleAnswers/index.tsx b/src/components/pages/ABDesign/v1/components/Questionnaire/CustomAnswers/MultipleAnswers/index.tsx index 36e8815..94e08e8 100644 --- a/src/components/pages/ABDesign/v1/components/Questionnaire/CustomAnswers/MultipleAnswers/index.tsx +++ b/src/components/pages/ABDesign/v1/components/Questionnaire/CustomAnswers/MultipleAnswers/index.tsx @@ -3,7 +3,7 @@ import styles from "./styles.module.scss"; import { useTranslation } from "react-i18next"; import { useDispatch, useSelector } from "react-redux"; import { actions, selectors } from "@/store"; -import { useNavigate } from "react-router-dom"; +import {useNavigate, useLocation} from "react-router-dom"; import routes from "@/routes"; import Answer from "../../../../ui/Answer"; import QuestionnaireGreenButton from "../../../../ui/GreenButton"; @@ -19,6 +19,7 @@ function MultiplyAnswers({ answers }: IMultiplyAnswersProps) { const { currentlyAffecting, gender } = useSelector( selectors.selectQuestionnaire ); + const location = useLocation(); const handleClick = (answer: IAnswer) => { if (currentlyAffecting.includes(`$${answer.id}`)) { @@ -54,6 +55,7 @@ function MultiplyAnswers({ answers }: IMultiplyAnswersProps) { ); }; + return ( <>
@@ -79,7 +81,7 @@ function MultiplyAnswers({ answers }: IMultiplyAnswersProps) {
{!!currentlyAffecting.length && (