diff --git a/client/src/templates/Challenges/classic/show.tsx b/client/src/templates/Challenges/classic/show.tsx index 78d98a5c14f..f1ed56218ef 100644 --- a/client/src/templates/Challenges/classic/show.tsx +++ b/client/src/templates/Challenges/classic/show.tsx @@ -394,6 +394,8 @@ function ShowClassic({ } challengeTitle={ diff --git a/client/src/templates/Challenges/components/challenge-description.tsx b/client/src/templates/Challenges/components/challenge-description.tsx index c8c1b538655..86f3aa107f0 100644 --- a/client/src/templates/Challenges/components/challenge-description.tsx +++ b/client/src/templates/Challenges/components/challenge-description.tsx @@ -6,18 +6,28 @@ import './challenge-description.css'; type Props = { description?: string; instructions?: string; + superBlock?: string; + block?: string; +}; +const ChallengeDescription = ({ + description, + instructions, + superBlock, + block +}: Props) => { + const sbClass = superBlock ? superBlock : ''; + const bClass = block ? block : ''; + return ( +
+ {description && } + {instructions && description &&
} + {instructions && } +
+ ); }; - -const ChallengeDescription = ({ description, instructions }: Props) => ( -
- {description && } - {instructions && description &&
} - {instructions && } -
-); ChallengeDescription.displayName = 'ChallengeDescription';