@@ -7,11 +7,18 @@ import { connect } from 'react-redux';
77import { bindActionCreators } from 'redux' ;
88import type { Dispatch } from 'redux' ;
99import { createSelector } from 'reselect' ;
10- import { Container , Col , Row , Button , Quiz , useQuiz } from '@freecodecamp/ui' ;
10+ import {
11+ Container ,
12+ Col ,
13+ Row ,
14+ Button ,
15+ Quiz ,
16+ useQuiz ,
17+ Spacer
18+ } from '@freecodecamp/ui' ;
1119
1220// Local Utilities
1321import { shuffleArray } from '../../../../../shared/utils/shuffle-array' ;
14- import Spacer from '../../../components/helpers/spacer' ;
1522import LearnLayout from '../../../components/layouts/learn' ;
1623import { ChallengeNode , ChallengeMeta , Test } from '../../../redux/prop-types' ;
1724// import { challengeTypes } from '../../../../../shared/config/challenge-types';
@@ -228,7 +235,7 @@ const ShowQuiz = ({
228235 />
229236 < Container className = 'quiz-challenge-container' >
230237 < Row >
231- < Spacer size = 'medium ' />
238+ < Spacer size = 'm ' />
232239 < ChallengeTitle
233240 isCompleted = { isChallengeCompleted }
234241 translationPending = { translationPending }
@@ -237,15 +244,17 @@ const ShowQuiz = ({
237244 </ ChallengeTitle >
238245
239246 < Col md = { 8 } mdOffset = { 2 } sm = { 10 } smOffset = { 1 } xs = { 12 } >
247+ < Spacer size = 'm' />
240248 < ChallengeDescription description = { description } />
249+ < Spacer size = 'l' />
241250 < ObserveKeys >
242251 < Quiz questions = { quizData } disabled = { hasSubmitted } />
243252 </ ObserveKeys >
244- < Spacer size = 'medium ' />
253+ < Spacer size = 'm ' />
245254 < div aria-live = 'polite' aria-atomic = 'true' >
246255 { errorMessage }
247256 </ div >
248- < Spacer size = 'medium ' />
257+ < Spacer size = 'm ' />
249258 { /*
250259 There are three cases for the button display:
251260 1. Campers submit the answers but don't pass
@@ -273,7 +282,7 @@ const ShowQuiz = ({
273282 { t ( 'buttons.submit-and-go' ) }
274283 </ Button >
275284 ) }
276- < Spacer size = 'large ' />
285+ < Spacer size = 'l ' />
277286 </ Col >
278287 < CompletionModal />
279288 </ Row >
0 commit comments