feat(client): add alert if qualified for exam (#63607)

This commit is contained in:
Tom 2025-11-06 13:46:13 -06:00 committed by GitHub
parent ec86ed5212
commit 8213267f0b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 10 additions and 1 deletions

View File

@ -2,3 +2,7 @@
display: flex;
flex-direction: column;
}
.exam-qualified p:last-of-type {
margin-bottom: 0;
}

View File

@ -3,6 +3,7 @@ import { graphql } from 'gatsby';
import Helmet from 'react-helmet';
import {
Button,
Callout,
Dropdown,
MenuItem,
Spacer,
@ -199,10 +200,14 @@ function ShowExamDownload({
{title}
</ChallengeTitle>
<Spacer size='m' />
{!!missingPrerequisites.length && (
{missingPrerequisites.length > 0 ? (
<MissingPrerequisites
missingPrerequisites={missingPrerequisites}
/>
) : (
<Callout className='exam-qualified' variant='info'>
<p>{t('learn.exam.qualified')}</p>
</Callout>
)}
<h2>{t('exam.download-header')}</h2>
<p>{t('exam.explanation')}</p>