From 8a625a3f75af16405d659c59c0f22bf3322de6d6 Mon Sep 17 00:00:00 2001 From: Nitesh Seram Date: Sat, 16 Nov 2024 21:14:08 +0530 Subject: [PATCH] [web] interviews/qns: add props to hide arrow in the question card --- ...wsMarketingPracticeQuestionBankSection.tsx | 1 + .../listings/items/QuestionsList.tsx | 24 +++++++++++-------- 2 files changed, 15 insertions(+), 10 deletions(-) diff --git a/apps/web/src/components/interviews/marketing/InterviewsMarketingPracticeQuestionBankSection.tsx b/apps/web/src/components/interviews/marketing/InterviewsMarketingPracticeQuestionBankSection.tsx index 0c9fe290c..87f65de16 100644 --- a/apps/web/src/components/interviews/marketing/InterviewsMarketingPracticeQuestionBankSection.tsx +++ b/apps/web/src/components/interviews/marketing/InterviewsMarketingPracticeQuestionBankSection.tsx @@ -341,6 +341,7 @@ export default function InterviewsMarketingPracticeQuestionBankSection({ 0, MAX_TO_SHOW, )} + showArrowRight={false} showOverlayAtLastItem={ questionsWithCompletionStatus.length >= MAX_TO_SHOW } diff --git a/apps/web/src/components/interviews/questions/listings/items/QuestionsList.tsx b/apps/web/src/components/interviews/questions/listings/items/QuestionsList.tsx index 241f6e3fd..facc65ded 100644 --- a/apps/web/src/components/interviews/questions/listings/items/QuestionsList.tsx +++ b/apps/web/src/components/interviews/questions/listings/items/QuestionsList.tsx @@ -48,6 +48,7 @@ type Props = Readonly<{ primaryLabel?: 'difficulty' | 'importance'; questionCompletionCount?: QuestionCompletionCount; questions: ReadonlyArray; + showArrowRight?: boolean; showOverlayAtLastItem?: boolean; showProgress?: boolean; }>; @@ -65,6 +66,7 @@ export default function QuestionsList({ onMarkAsCompleted, onMarkAsNotCompleted, showOverlayAtLastItem, + showArrowRight = true, mode = 'default', }: Props) { const { userProfile } = useUserProfile(); @@ -241,16 +243,18 @@ export default function QuestionsList({ })()} -
-
+ {showArrowRight && ( +
+
+ )} {onQuestionClickIntercept && (