Skip to content

Commit

Permalink
fixup move creating the page panel
Browse files Browse the repository at this point in the history
  • Loading branch information
jonathansick committed Mar 28, 2024
1 parent c7fe25d commit 0656660
Showing 1 changed file with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -36,11 +36,12 @@ export default function TimesSquareApp({ children }) {
<TimesSquareMainGitHubNav pagePath={githubSlug} />
);

const pagePanel = tsSlug ? <TimesSquareGitHubPagePanel /> : null;

return (
<StyledLayout>
<Sidebar pageNav={pageNav} pagePanel={pagePanel} />
<Sidebar
pageNav={pageNav}
pagePanel={tsSlug ? <TimesSquareGitHubPagePanel /> : null}
/>
<main>{children}</main>
</StyledLayout>
);
Expand Down

0 comments on commit 0656660

Please sign in to comment.