feat: add blur only one page
This commit is contained in:
parent
175f75f068
commit
53ea9ae8e0
@ -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 (
|
||||
<>
|
||||
<div className={styles["multiply-answers"]}>
|
||||
@ -79,7 +81,7 @@ function MultiplyAnswers({ answers }: IMultiplyAnswersProps) {
|
||||
</div>
|
||||
{!!currentlyAffecting.length && (
|
||||
<QuestionnaireGreenButton
|
||||
isActiveBlur={true}
|
||||
isActiveBlur={location.pathname.includes('v1/questionnaire/relationships/currentlyAffecting/')}
|
||||
className={styles.button}
|
||||
onClick={handleNext}
|
||||
>
|
||||
|
||||
Loading…
Reference in New Issue
Block a user