Skip to content

Commit

Permalink
feat(client): add (Review) suffix to chapter problem review
Browse files Browse the repository at this point in the history
  • Loading branch information
fushar committed Nov 5, 2023
1 parent 216ee1b commit c58e92f
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
import { ContentCard } from '../../../ContentCard/ContentCard';
import { KatexText } from '../../../KatexText/KatexText';

export function ProblemEditorialCard({ alias, statement: { title }, editorial: { text } }) {
export function ProblemEditorialCard({ alias, statement: { title }, editorial: { text }, titleSuffix }) {
return (
<ContentCard>
<h2 className="programming-problem-statement__name">
{alias ? `${alias}. ` : ''}
{title}
{titleSuffix}
</h2>
<div className="programming-problem-statement__text">
<KatexText key={alias}>{text}</KatexText>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,12 @@ function ChapterProblemStatementPage({ worksheet, renderNavigation }) {
return (
<>
<Tag intent={Intent.SUCCESS} style={{ width: '100%' }}></Tag>
<ProblemEditorialCard alias={problem.alias} statement={worksheet.worksheet.statement} editorial={editorial} />
<ProblemEditorialCard
alias={problem.alias}
statement={worksheet.worksheet.statement}
editorial={editorial}
titleSuffix=" (Review)"
/>
</>
);
};
Expand Down

0 comments on commit c58e92f

Please sign in to comment.