fix: lint warnings (#2201)

This commit is contained in:
Dhruwang Jariwala
2024-03-07 20:11:33 +05:30
committed by GitHub
parent f3f93faf1d
commit 82124a8b1c
4 changed files with 3 additions and 4 deletions
@@ -90,8 +90,6 @@ const SummaryPage = ({
}
}, [searchParams, resetState]);
console.log({ surveySummary });
return (
<ContentWrapper>
<SummaryHeader
@@ -89,7 +89,7 @@ const CustomFilter = ({ environmentTags, attributes, survey }: CustomFilterProps
if (!firstMountRef.current) {
resetState();
}
}, [survey?.id]);
}, [survey?.id, resetState]);
// when the page loads we get total responses and iterate over the responses and questions, tags and attributes to create the filter options
useEffect(() => {
@@ -78,6 +78,7 @@ export function Onboarding({
window.removeEventListener("message", handleMessageEvent, false);
};
}
// eslint-disable-next-line react-hooks/exhaustive-deps
}, [iframeVisible, currentStep]); // Depend on iframeVisible and currentStep to re-evaluate when needed
useEffect(() => {
@@ -56,7 +56,7 @@ export function Survey({
} else {
return survey.questions.find((q) => q.id === questionId);
}
}, [questionId, survey]);
}, [questionId, survey, history]);
const contentRef = useRef<HTMLDivElement | null>(null);
const showProgressBar = !survey.styling?.hideProgressBar;