mirror of
https://github.com/freeCodeCamp/freeCodeCamp.git
synced 2026-04-18 10:00:55 -04:00
fix(client): project euler mathjax (#57292)
This commit is contained in:
@@ -394,6 +394,8 @@ function ShowClassic({
|
||||
<ChallengeDescription
|
||||
description={description}
|
||||
instructions={instructions}
|
||||
superBlock={superBlock}
|
||||
block={block}
|
||||
/>
|
||||
}
|
||||
challengeTitle={
|
||||
|
||||
@@ -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 (
|
||||
<div
|
||||
className={`challenge-instructions ${sbClass} ${bClass}`}
|
||||
data-playwright-test-label='challenge-description'
|
||||
>
|
||||
{description && <PrismFormatted text={description} />}
|
||||
{instructions && description && <hr />}
|
||||
{instructions && <PrismFormatted text={instructions} />}
|
||||
</div>
|
||||
);
|
||||
};
|
||||
|
||||
const ChallengeDescription = ({ description, instructions }: Props) => (
|
||||
<div
|
||||
className={'challenge-instructions'}
|
||||
data-playwright-test-label='challenge-description'
|
||||
>
|
||||
{description && <PrismFormatted text={description} />}
|
||||
{instructions && description && <hr />}
|
||||
{instructions && <PrismFormatted text={instructions} />}
|
||||
</div>
|
||||
);
|
||||
|
||||
ChallengeDescription.displayName = 'ChallengeDescription';
|
||||
|
||||
|
||||
Reference in New Issue
Block a user