From b77b5780e7e4597839522ea160785ae3d17e24e7 Mon Sep 17 00:00:00 2001 From: Roy Johnson Date: Wed, 18 Dec 2024 10:53:39 -0600 Subject: [PATCH] Use h2 --- src/components/Card.tsx | 4 +-- .../__snapshots__/Card.spec.tsx.snap | 30 +++++++------------ .../__snapshots__/Exercise.spec.tsx.snap | 30 +++++++------------ 3 files changed, 22 insertions(+), 42 deletions(-) diff --git a/src/components/Card.tsx b/src/components/Card.tsx index 2559642d..e16d4d4d 100644 --- a/src/components/Card.tsx +++ b/src/components/Card.tsx @@ -243,13 +243,13 @@ const StepCard = ({
{leftHeaderChildren} -
+

{headerTitleChildren} {formattedQuestionNumber} {showTotalQuestions ?  / {numberOfQuestions} : null} | ID: {questionId} -

+
{availablePoints || rightHeaderChildren ?
{availablePoints &&
{availablePoints} Points
} diff --git a/src/components/__snapshots__/Card.spec.tsx.snap b/src/components/__snapshots__/Card.spec.tsx.snap index 6c640bef..c2731f0f 100644 --- a/src/components/__snapshots__/Card.spec.tsx.snap +++ b/src/components/__snapshots__/Card.spec.tsx.snap @@ -11,10 +11,8 @@ exports[`StepCard matches snapshot 1`] = ` className="sc-dkzDqf hbFgnH" >
-
Question 1 @@ -29,7 +27,7 @@ exports[`StepCard matches snapshot 1`] = ` > ID: -
+
-
Questions 1 - 3 @@ -84,7 +80,7 @@ exports[`StepCard matches snapshot with more than one question 1`] = ` > ID: -
+
-
Question 1 @@ -135,7 +129,7 @@ exports[`TaskStepCard can optionally provide task 1`] = ` ID: 1234@1 -
+
-
Question 1 @@ -176,7 +168,7 @@ exports[`TaskStepCard can optionally provide type 1`] = ` ID: 1234@1 -
+
-
Question 1 @@ -217,7 +207,7 @@ exports[`TaskStepCard matches snapshot 1`] = ` ID: 1234@1 -
+
-
Question 1 @@ -40,7 +38,7 @@ exports[`Exercise using step data matches snapshot 1`] = ` ID: 1234@4 -
+
-
Question 1 @@ -227,7 +223,7 @@ exports[`Exercise with question state data matches snapshot 1`] = ` ID: 1234@5 -
+
-
Question 1 @@ -468,7 +462,7 @@ exports[`Exercise with question state data renders header icons with multiple ch ID: 1234@5 -
+
-
Question 1 @@ -795,7 +787,7 @@ exports[`Exercise with question state data renders header icons with two-step ex ID: 1234@5 -
+
-
Question 1 @@ -1108,7 +1098,7 @@ exports[`Exercise with question state data shows a detailed solution 1`] = ` ID: 1234@5 -
+