fix(client): conditional rendering of breadcrumb/spacers (#55629)

Co-authored-by: Ahmad Abdolsaheb <ahmad.abdolsaheb@gmail.com>
This commit is contained in:
Lasse Jørgensen
2024-08-05 19:59:42 +02:00
committed by GitHub
parent ff5fd21e00
commit fdf147cf24
+12 -12
View File
@@ -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 />}