[web] interviews/qns: add props to hide arrow in the question card
This commit is contained in:
parent
00922a568a
commit
8a625a3f75
|
|
@ -341,6 +341,7 @@ export default function InterviewsMarketingPracticeQuestionBankSection({
|
|||
0,
|
||||
MAX_TO_SHOW,
|
||||
)}
|
||||
showArrowRight={false}
|
||||
showOverlayAtLastItem={
|
||||
questionsWithCompletionStatus.length >= MAX_TO_SHOW
|
||||
}
|
||||
|
|
|
|||
|
|
@ -48,6 +48,7 @@ type Props<Q extends QuestionMetadata> = Readonly<{
|
|||
primaryLabel?: 'difficulty' | 'importance';
|
||||
questionCompletionCount?: QuestionCompletionCount;
|
||||
questions: ReadonlyArray<Q>;
|
||||
showArrowRight?: boolean;
|
||||
showOverlayAtLastItem?: boolean;
|
||||
showProgress?: boolean;
|
||||
}>;
|
||||
|
|
@ -65,6 +66,7 @@ export default function QuestionsList<Q extends QuestionMetadata>({
|
|||
onMarkAsCompleted,
|
||||
onMarkAsNotCompleted,
|
||||
showOverlayAtLastItem,
|
||||
showArrowRight = true,
|
||||
mode = 'default',
|
||||
}: Props<Q>) {
|
||||
const { userProfile } = useUserProfile();
|
||||
|
|
@ -241,16 +243,18 @@ export default function QuestionsList<Q extends QuestionMetadata>({
|
|||
})()}
|
||||
</div>
|
||||
</div>
|
||||
<div className="flex items-center justify-center">
|
||||
<RiArrowRightLine
|
||||
aria-hidden="true"
|
||||
className={clsx(
|
||||
'size-6 shrink-0',
|
||||
themeTextFaintColor,
|
||||
themeTextBrandColor_GroupHover,
|
||||
)}
|
||||
/>
|
||||
</div>
|
||||
{showArrowRight && (
|
||||
<div className="flex items-center justify-center">
|
||||
<RiArrowRightLine
|
||||
aria-hidden="true"
|
||||
className={clsx(
|
||||
'size-6 shrink-0',
|
||||
themeTextFaintColor,
|
||||
themeTextBrandColor_GroupHover,
|
||||
)}
|
||||
/>
|
||||
</div>
|
||||
)}
|
||||
</div>
|
||||
{onQuestionClickIntercept && (
|
||||
<span
|
||||
|
|
|
|||
Loading…
Reference in New Issue