mirror of
https://github.com/freeCodeCamp/freeCodeCamp.git
synced 2026-05-28 18:26:54 +00:00
fix(client): conditional rendering of breadcrumb/spacers (#55629)
Co-authored-by: Ahmad Abdolsaheb <ahmad.abdolsaheb@gmail.com>
This commit is contained in:
@@ -258,18 +258,18 @@ function DefaultLayout({
|
||||
/>
|
||||
) : null}
|
||||
<SignoutModal />
|
||||
{isChallenge && !examInProgress && isRenderBreadcrumb ? (
|
||||
<div className='breadcrumbs-demo'>
|
||||
<BreadCrumb
|
||||
block={block as string}
|
||||
superBlock={superBlock as string}
|
||||
/>
|
||||
</div>
|
||||
) : isExSmallViewportHeight ? (
|
||||
<Spacer size='xxSmall' />
|
||||
) : (
|
||||
<Spacer size='small' />
|
||||
)}
|
||||
{isChallenge &&
|
||||
!examInProgress &&
|
||||
(isRenderBreadcrumb ? (
|
||||
<div className='breadcrumbs-demo'>
|
||||
<BreadCrumb
|
||||
block={block as string}
|
||||
superBlock={superBlock as string}
|
||||
/>
|
||||
</div>
|
||||
) : (
|
||||
<Spacer size={isExSmallViewportHeight ? 'xxSmall' : 'small'} />
|
||||
))}
|
||||
{fetchState.complete && children}
|
||||
</div>
|
||||
{showFooter && <Footer />}
|
||||
|
||||
Reference in New Issue
Block a user