Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
majakomel committed Nov 26, 2024
1 parent 10d9c97 commit 703df13
Showing 1 changed file with 9 additions and 14 deletions.
23 changes: 9 additions & 14 deletions components/Layout.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,28 +32,23 @@ const Layout = ({ children, isEmbeddedView }) => {

return (
<UserProvider>
<div className="site flex flex-col min-h-[100vh]">
<div className="site text-sm flex flex-col min-h-[100vh]">
<div className="flex-[1_0_auto]">
<Header />
{!isEmbeddedView && (
<ConditionalWrapper
condition={!!navbarSticky}
wrapper={(children) => (
<StyledStickyNavBar>{children}</StyledStickyNavBar>
)}
>
{navbarSticky ? (
<StyledStickyNavBar>
<NavBar color={navbarColor} />
</ConditionalWrapper>
</StyledStickyNavBar>
) : (
<NavBar color={navbarColor} />
)}
<div className={`content ${!navbarColor && 'mt-[-66px]'}`}>
{children}
</div>
</div>
{!isEmbeddedView && (
<div className="flex-shrink-0">
<Footer />
</div>
)}
<div className="flex-shrink-0">
<Footer />
</div>
</div>
</UserProvider>
)
Expand Down

0 comments on commit 703df13

Please sign in to comment.