fix(client): display challenge completion status inline (#41006)

This commit is contained in:
Sem Bauke
2021-02-09 18:18:05 +01:00
committed by GitHub
parent 827bcfaaa2
commit 0e9560b455
2 changed files with 63 additions and 63 deletions

View File

@ -39,13 +39,13 @@ function ChallengeTitle({ block, children, isCompleted, superBlock }) {
</div> </div>
<div className='challenge-title'> <div className='challenge-title'>
<b>{children}</b> <b>{children}</b>
</div>
{isCompleted ? ( {isCompleted ? (
<GreenPass <GreenPass
style={{ height: '15px', width: '15px', marginLeft: '7px' }} style={{ height: '15px', width: '15px', marginLeft: '7px' }}
/> />
) : null} ) : null}
</div> </div>
</div>
); );
} }

View File

@ -34,7 +34,6 @@ exports[`<ChallengeTitle/> renders correctly 1`] = `
<b> <b>
title text title text
</b> </b>
</div>
<span <span
className="sr-only" className="sr-only"
> >
@ -93,5 +92,6 @@ exports[`<ChallengeTitle/> renders correctly 1`] = `
/> />
</g> </g>
</svg> </svg>
</div>
</div> </div>
`; `;