Wait for background color before rendering content

This commit is contained in:
jeffvli 2022-12-31 03:16:05 -08:00
parent 0a9dcf36b9
commit 58ed2f3706

View file

@ -24,14 +24,14 @@ const AlbumDetailRoute = () => {
<ScrollArea
h="100%"
offsetScrollbars={false}
styles={{
scrollbar: {
marginTop: '35px',
},
}}
styles={{ scrollbar: { marginTop: '35px' } }}
>
<AlbumDetailHeader background={background} />
<AlbumDetailContent tableRef={tableRef} />
{background && (
<>
<AlbumDetailHeader background={background} />
<AlbumDetailContent tableRef={tableRef} />
</>
)}
</ScrollArea>
</AnimatedPage>
);