Exam Edit on ExamList

This commit is contained in:
Carlos-Mesquita
2024-11-27 02:01:50 +00:00
parent ca5977e78b
commit a2a513077f
13 changed files with 199 additions and 53 deletions

View File

@@ -30,7 +30,22 @@ const PartDivider: React.FC<Props> = ({ sectionIndex, sectionLabel, section, mod
<div className={`w-12 h-12 bg-ielts-${module} flex items-center justify-center rounded-lg`}>{moduleIcon[module]}</div>
<p className="text-3xl">{section.intro ? `${sectionLabel} ${sectionIndex + 1}` : defaultTitle}</p>
</div>
{section.intro && section.intro.split('\\n\\n').map((x, index) => <p key={`line-${index}`} className="text-2xl text-clip" dangerouslySetInnerHTML={{ __html: x.replace('that is not correct', 'that is <span class="font-bold"><u>not correct</u></span>') }}></p>)}
{section.intro && section.intro
.replace(/\\n/g, '\n')
.split('\n')
.map((x, index) => (
<p
key={`line-${index}`}
className="text-2xl text-clip"
dangerouslySetInnerHTML={{
__html: x.replace(
'that is not correct',
'that is <span class="font-bold"><u>not correct</u></span>'
)
}}
></p>
))
}
<div className="flex items-center justify-center mt-4">
<button
onClick={() => onNext()}