From ea95a3e4b8255baa66489336341fc9ca278c96fc Mon Sep 17 00:00:00 2001 From: Brooke Date: Wed, 24 Aug 2022 13:57:39 -0700 Subject: [PATCH] TCA-327 #comment This commit adds the lesson title to the old editor #time 15m --- client/src/templates/Challenges/classic/show.tsx | 1 + .../Challenges/components/Challenge-Description.tsx | 7 +++++++ 2 files changed, 8 insertions(+) diff --git a/client/src/templates/Challenges/classic/show.tsx b/client/src/templates/Challenges/classic/show.tsx index 487f20dc2065dc..f80c3dcdef5de7 100644 --- a/client/src/templates/Challenges/classic/show.tsx +++ b/client/src/templates/Challenges/classic/show.tsx @@ -341,6 +341,7 @@ class ShowClassic extends Component { block={block} description={description} instructions={instructions} + title={title} /> } guideUrl={getGuideUrl({ forumTopicId, title })} diff --git a/client/src/templates/Challenges/components/Challenge-Description.tsx b/client/src/templates/Challenges/components/Challenge-Description.tsx index 59a15a3c7252b5..af6e6767f9396c 100644 --- a/client/src/templates/Challenges/components/Challenge-Description.tsx +++ b/client/src/templates/Challenges/components/Challenge-Description.tsx @@ -7,6 +7,7 @@ type Challenge = { block?: string; description?: string; instructions?: string; + title?: string; }; function ChallengeDescription(challenge: Challenge): JSX.Element { @@ -16,6 +17,12 @@ function ChallengeDescription(challenge: Challenge): JSX.Element { challenge.block ? ' ' + challenge.block : '' }`} > + {challenge.title && ( + <> + +
+ + )} {challenge.description && } {challenge.instructions && ( <>