mirror of
https://github.com/freeCodeCamp/freeCodeCamp.git
synced 2026-06-19 21:09:51 +08:00
feat(client): add alert if qualified for exam (#63607)
This commit is contained in:
parent
ec86ed5212
commit
8213267f0b
@ -2,3 +2,7 @@
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
}
|
||||
|
||||
.exam-qualified p:last-of-type {
|
||||
margin-bottom: 0;
|
||||
}
|
||||
|
||||
@ -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>
|
||||
|
||||
Loading…
Reference in New Issue
Block a user