mirror of
https://github.com/freeCodeCamp/freeCodeCamp.git
synced 2026-10-24 23:49:06 +08:00
feat: remove extra div elements (#51997)
This commit is contained in:
@@ -206,32 +206,29 @@ const SuperBlockIntroductionPage = (props: SuperBlockProp) => {
|
||||
<Spacer size='medium' />
|
||||
<div className='block-ui'>
|
||||
{defaultCurriculumNames.map(blockDashedName => (
|
||||
<Fragment key={blockDashedName}>
|
||||
<Block
|
||||
blockDashedName={blockDashedName}
|
||||
challenges={nodesForSuperBlock.filter(
|
||||
node => node.challenge.block === blockDashedName
|
||||
)}
|
||||
superBlock={superBlock}
|
||||
/>
|
||||
</Fragment>
|
||||
<Block
|
||||
key={blockDashedName}
|
||||
blockDashedName={blockDashedName}
|
||||
challenges={nodesForSuperBlock.filter(
|
||||
node => node.challenge.block === blockDashedName
|
||||
)}
|
||||
superBlock={superBlock}
|
||||
/>
|
||||
))}
|
||||
{!superblockWithoutCert.includes(superBlock) && (
|
||||
<div>
|
||||
<CertChallenge
|
||||
certification={certification}
|
||||
superBlock={superBlock}
|
||||
title={title}
|
||||
user={user}
|
||||
/>
|
||||
</div>
|
||||
<CertChallenge
|
||||
certification={certification}
|
||||
superBlock={superBlock}
|
||||
title={title}
|
||||
user={user}
|
||||
/>
|
||||
)}
|
||||
</div>
|
||||
{!isSignedIn && !signInLoading && (
|
||||
<div>
|
||||
<>
|
||||
<Spacer size='large' />
|
||||
<Login block={true}>{t('buttons.logged-out-cta-btn')}</Login>
|
||||
</div>
|
||||
</>
|
||||
)}
|
||||
<Spacer size='large' />
|
||||
<h3
|
||||
|
||||
Reference in New Issue
Block a user