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 className='challenge-title'>
<b>{children}</b>
</div>
{isCompleted ? (
<GreenPass
style={{ height: '15px', width: '15px', marginLeft: '7px' }}
/>
) : null}
</div>
</div>
);
}

View File

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