fix(client): display challenge completion status inline (#41006)
This commit is contained in:
@ -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>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -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>
|
||||||
`;
|
`;
|
||||||
|
Reference in New Issue
Block a user