Skip to content

Commit d152e17

Browse files
Merge pull request #48 from topcoder-platform/TCA-327_lesson-title
TCA-327 Adds Lesson Title to Old Editor -> dev
2 parents a10a940 + ea95a3e commit d152e17

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

client/src/templates/Challenges/classic/show.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -341,6 +341,7 @@ class ShowClassic extends Component<ShowClassicProps, ShowClassicState> {
341341
block={block}
342342
description={description}
343343
instructions={instructions}
344+
title={title}
344345
/>
345346
}
346347
guideUrl={getGuideUrl({ forumTopicId, title })}

client/src/templates/Challenges/components/Challenge-Description.tsx

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ type Challenge = {
77
block?: string;
88
description?: string;
99
instructions?: string;
10+
title?: string;
1011
};
1112

1213
function ChallengeDescription(challenge: Challenge): JSX.Element {
@@ -16,6 +17,12 @@ function ChallengeDescription(challenge: Challenge): JSX.Element {
1617
challenge.block ? ' ' + challenge.block : ''
1718
}`}
1819
>
20+
{challenge.title && (
21+
<>
22+
<PrismFormatted text={challenge.title} />
23+
<hr />
24+
</>
25+
)}
1926
{challenge.description && <PrismFormatted text={challenge.description} />}
2027
{challenge.instructions && (
2128
<>

0 commit comments

Comments
 (0)