From cbb427a4ae0961dc0f02144ffcee5b9b63dea5cc Mon Sep 17 00:00:00 2001 From: Nitesh Seram Date: Fri, 15 Nov 2024 17:02:42 +0530 Subject: [PATCH] [web] interviews/qns: fix question format section ui audit issues (#988) --- .../InterviewsQuestionFormatsSection.tsx | 138 +++++++++--------- 1 file changed, 69 insertions(+), 69 deletions(-) diff --git a/apps/web/src/components/interviews/questions/listings/practice/InterviewsQuestionFormatsSection.tsx b/apps/web/src/components/interviews/questions/listings/practice/InterviewsQuestionFormatsSection.tsx index 2565aa78e..fefcabde7 100644 --- a/apps/web/src/components/interviews/questions/listings/practice/InterviewsQuestionFormatsSection.tsx +++ b/apps/web/src/components/interviews/questions/listings/practice/InterviewsQuestionFormatsSection.tsx @@ -19,7 +19,6 @@ import type { import useQuestionTopicLabels from '~/components/interviews/questions/listings/filters/useQuestionTopicLabels'; import { FormattedMessage, useIntl } from '~/components/intl'; import Anchor from '~/components/ui/Anchor'; -import Badge from '~/components/ui/Badge'; import Heading from '~/components/ui/Heading'; import Text from '~/components/ui/Text'; import { @@ -68,8 +67,8 @@ function InterviewsQuestionFormatCard({ return (
- +
-
-
-
- - {title} - - - {description} - +
+
+
+
+ + {title} + + + {description} + +
+
+ + {topics && ( + <> + + + +
+ {topics.slice(0, MAX_TOPIC).map((topic) => ( + + #{topicLabels[topic].label} + + ))} + {topics.length > MAX_TOPIC && ( + + {intl.formatMessage( + { + defaultMessage: '+{count} more', + description: 'Badge label for more topics', + id: 'sg/5hy', + }, + { + count: topics.length - MAX_TOPIC, + }, + )} + + )} +
+ + )} +
-
- - {topics && ( - <> - - - -
- {topics.slice(0, MAX_TOPIC).map((topic) => ( - - ))} - {topics.length > MAX_TOPIC && ( - - )} -
- + + />
- +
-
); } @@ -290,7 +290,7 @@ export default function InterviewsQuestionFormatsSection({ />
-
+
{questionFormatsData.map((item) => ( ))}